blob: 1500fb5aceaa80e0de0e16da4f9be5f166b05f74 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001require libgcc-common.inc
2
3DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
4
Patrick Williamsc0f7c042017-02-23 20:41:17 -06005do_install_append_class-target () {
6 if [ "${TCLIBC}" != "glibc" ]; then
7 case "${TARGET_OS}" in
Brad Bishopd7bf8c12018-02-25 22:55:05 -05008 "linux-musl" | "linux-*spe") extra_target_os="linux";;
9 "linux-musleabi") extra_target_os="linux-gnueabi";;
Patrick Williamsc0f7c042017-02-23 20:41:17 -060010 *) 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 Williamsc124f4f2015-09-15 14:41:29 -050016PACKAGES = "\
17 ${PN} \
18 ${PN}-dev \
19 ${PN}-dbg \
20"
21
22# All libgcc source is marked with the exception.
23#
24LICENSE_${PN} = "GPL-3.0-with-GCC-exception"
25LICENSE_${PN}-dev = "GPL-3.0-with-GCC-exception"
26LICENSE_${PN}-dbg = "GPL-3.0-with-GCC-exception"
27
28
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029FILES_${PN}-dev = "\
30 ${base_libdir}/libgcc*.so \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031 ${@base_conditional('BASETARGET_SYS', '${TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \
Patrick Williamsf1e5d692016-03-30 15:21:19 -050032 ${libdir}/${TARGET_SYS}/${BINV}* \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060033 ${libdir}/${TARGET_ARCH}${TARGET_VENDOR}* \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050034"
35
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036do_package[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
37do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
38do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
39do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
40
41INSANE_SKIP_${PN}-dev = "staticdev"
42