Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require libgcc-common.inc |
| 2 | |
| 3 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" |
| 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 |
| 12 | ln -s ${TARGET_SYS} ${D}${libdir}/${TARGET_ARCH}${TARGET_VENDOR}-$extra_target_os |
| 13 | fi |
| 14 | } |
| 15 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | PACKAGES = "\ |
| 17 | ${PN} \ |
| 18 | ${PN}-dev \ |
| 19 | ${PN}-dbg \ |
| 20 | " |
| 21 | |
| 22 | # All libgcc source is marked with the exception. |
| 23 | # |
| 24 | LICENSE_${PN} = "GPL-3.0-with-GCC-exception" |
| 25 | LICENSE_${PN}-dev = "GPL-3.0-with-GCC-exception" |
| 26 | LICENSE_${PN}-dbg = "GPL-3.0-with-GCC-exception" |
| 27 | |
| 28 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 29 | FILES_${PN}-dev = "\ |
| 30 | ${base_libdir}/libgcc*.so \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 31 | ${@oe.utils.conditional('BASETARGET_SYS', '${TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \ |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 32 | ${libdir}/${TARGET_SYS}/${BINV}* \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 33 | ${libdir}/${TARGET_ARCH}${TARGET_VENDOR}* \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 34 | " |
| 35 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 36 | do_package[depends] += "virtual/${MLPREFIX}libc:do_packagedata" |
| 37 | do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata" |
| 38 | do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata" |
| 39 | do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata" |
| 40 | |
| 41 | INSANE_SKIP_${PN}-dev = "staticdev" |
| 42 | |