Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require libgcc-common.inc |
| 2 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 3 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++ virtual/${MLPREFIX}libc" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 5 | do_install_append_class-target () { |
| 6 | if [ "${TCLIBC}" != "glibc" ]; then |
| 7 | case "${TARGET_OS}" in |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 8 | "linux-musl" | "linux-*spe") extra_target_os="linux";; |
| 9 | "linux-musleabi") extra_target_os="linux-gnueabi";; |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 10 | *) extra_target_os="linux";; |
| 11 | esac |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | if [ ! -e ${D}${libdir}/${TARGET_ARCH}${TARGET_VENDOR}-$extra_target_os ]; then |
| 13 | ln -s ${TARGET_SYS} ${D}${libdir}/${TARGET_ARCH}${TARGET_VENDOR}-$extra_target_os |
| 14 | fi |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 15 | fi |
Brad Bishop | d89cb5f | 2019-04-10 09:02:41 -0400 | [diff] [blame] | 16 | if [ -n "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}" ]; then |
| 17 | case "${TARGET_OS}" in |
| 18 | "linux-musleabi") extra_target_os="linux-musleabihf";; |
| 19 | "linux-gnueabi") extra_target_os="linux-gnueabihf";; |
| 20 | esac |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 21 | if [ ! -e ${D}${libdir}/${TARGET_ARCH}${TARGET_VENDOR}-$extra_target_os ]; then |
| 22 | ln -s ${TARGET_SYS} ${D}${libdir}/${TARGET_ARCH}${TARGET_VENDOR}-$extra_target_os |
| 23 | fi |
Brad Bishop | d89cb5f | 2019-04-10 09:02:41 -0400 | [diff] [blame] | 24 | fi |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 25 | } |
| 26 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | PACKAGES = "\ |
| 28 | ${PN} \ |
| 29 | ${PN}-dev \ |
| 30 | ${PN}-dbg \ |
| 31 | " |
| 32 | |
| 33 | # All libgcc source is marked with the exception. |
| 34 | # |
| 35 | LICENSE_${PN} = "GPL-3.0-with-GCC-exception" |
| 36 | LICENSE_${PN}-dev = "GPL-3.0-with-GCC-exception" |
| 37 | LICENSE_${PN}-dbg = "GPL-3.0-with-GCC-exception" |
| 38 | |
| 39 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 40 | FILES_${PN}-dev = "\ |
| 41 | ${base_libdir}/libgcc*.so \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 42 | ${@oe.utils.conditional('BASETARGET_SYS', '${TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \ |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 43 | ${libdir}/${TARGET_SYS}/${BINV}* \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 44 | ${libdir}/${TARGET_ARCH}${TARGET_VENDOR}* \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 45 | " |
| 46 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 47 | do_package[depends] += "virtual/${MLPREFIX}libc:do_packagedata" |
| 48 | do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata" |
| 49 | do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata" |
| 50 | do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata" |
| 51 | |
| 52 | INSANE_SKIP_${PN}-dev = "staticdev" |
| 53 | |