Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | LDSO_TCLIBC = "glibc" |
| 2 | LDSO_TCLIBC_libc-musl = "musl" |
| 3 | LDSO_TCLIBC_libc-baremetal = "musl" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 4 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 5 | linuxloader_glibc () { |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 6 | case ${TARGET_ARCH} in |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 7 | powerpc | microblaze ) |
| 8 | dynamic_loader="${base_libdir}/ld.so.1" |
| 9 | ;; |
| 10 | mipsisa32r6el | mipsisa32r6 | mipsisa64r6el | mipsisa64r6) |
| 11 | dynamic_loader="${base_libdir}/ld-linux-mipsn8.so.1" |
| 12 | ;; |
| 13 | mips* ) |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 14 | dynamic_loader="${base_libdir}/ld.so.1" |
| 15 | ;; |
| 16 | powerpc64) |
| 17 | dynamic_loader="${base_libdir}/ld64.so.1" |
| 18 | ;; |
| 19 | x86_64) |
| 20 | dynamic_loader="${base_libdir}/ld-linux-x86-64.so.2" |
| 21 | ;; |
| 22 | i*86 ) |
| 23 | dynamic_loader="${base_libdir}/ld-linux.so.2" |
| 24 | ;; |
| 25 | arm ) |
| 26 | dynamic_loader="${base_libdir}/ld-linux.so.3" |
| 27 | ;; |
| 28 | * ) |
| 29 | dynamic_loader="/unknown_dynamic_linker" |
| 30 | ;; |
| 31 | esac |
| 32 | echo $dynamic_loader |
| 33 | } |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 34 | |
| 35 | linuxloader_musl () { |
| 36 | case ${TARGET_ARCH} in |
| 37 | microblaze* ) |
| 38 | dynamic_loader="${base_libdir}/ld-musl-microblaze${@bb.utils.contains('TUNE_FEATURES', 'bigendian', '', 'el' ,d)}.so.1" |
| 39 | ;; |
| 40 | mips* ) |
| 41 | dynamic_loader="${base_libdir}/ld-musl-mips${ABIEXTENSION}${MIPSPKGSFX_BYTE}${MIPSPKGSFX_R6}${MIPSPKGSFX_ENDIAN}${@['', '-sf'][d.getVar('TARGET_FPU') == 'soft']}.so.1" |
| 42 | ;; |
| 43 | powerpc ) |
| 44 | dynamic_loader="${base_libdir}/ld-musl-powerpc${@['', '-sf'][d.getVar('TARGET_FPU') == 'soft']}.so.1" |
| 45 | ;; |
| 46 | powerpc64 ) |
| 47 | dynamic_loader="${base_libdir}/ld-musl-powerpc64.so.1" |
| 48 | ;; |
| 49 | x86_64 ) |
| 50 | dynamic_loader="${base_libdir}/ld-musl-x86_64.so.1" |
| 51 | ;; |
| 52 | i*86 ) |
| 53 | dynamic_loader="${base_libdir}/ld-musl-i386.so.1" |
| 54 | ;; |
| 55 | arm* ) |
| 56 | dynamic_loader="${base_libdir}/ld-musl-arm${ARMPKGSFX_ENDIAN}${ARMPKGSFX_EABI}.so.1" |
| 57 | ;; |
| 58 | aarch64* ) |
| 59 | dynamic_loader="${base_libdir}/ld-musl-aarch64${ARMPKGSFX_ENDIAN_64}.so.1" |
| 60 | ;; |
| 61 | * ) |
| 62 | dynamic_loader="/unknown_dynamic_linker" |
| 63 | ;; |
| 64 | esac |
| 65 | echo $dynamic_loader |
| 66 | } |
| 67 | |
| 68 | linuxloader () { |
| 69 | linuxloader_${LDSO_TCLIBC} |
| 70 | } |