blob: e008d14f361d60f3eeecef52404b798515c86791 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001require libgcc-common.inc
2
Brad Bishop19323692019-04-05 15:28:33 -04003DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++ virtual/${MLPREFIX}libc"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004
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
Brad Bishopd89cb5f2019-04-10 09:02:41 -040014 if [ -n "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}" ]; then
15 case "${TARGET_OS}" in
16 "linux-musleabi") extra_target_os="linux-musleabihf";;
17 "linux-gnueabi") extra_target_os="linux-gnueabihf";;
18 esac
19 ln -s ${TARGET_SYS} ${D}${libdir}/${TARGET_ARCH}${TARGET_VENDOR}-$extra_target_os
20 fi
Patrick Williamsc0f7c042017-02-23 20:41:17 -060021}
22
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023PACKAGES = "\
24 ${PN} \
25 ${PN}-dev \
26 ${PN}-dbg \
27"
28
29# All libgcc source is marked with the exception.
30#
31LICENSE_${PN} = "GPL-3.0-with-GCC-exception"
32LICENSE_${PN}-dev = "GPL-3.0-with-GCC-exception"
33LICENSE_${PN}-dbg = "GPL-3.0-with-GCC-exception"
34
35
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036FILES_${PN}-dev = "\
37 ${base_libdir}/libgcc*.so \
Brad Bishop316dfdd2018-06-25 12:45:53 -040038 ${@oe.utils.conditional('BASETARGET_SYS', '${TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \
Patrick Williamsf1e5d692016-03-30 15:21:19 -050039 ${libdir}/${TARGET_SYS}/${BINV}* \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060040 ${libdir}/${TARGET_ARCH}${TARGET_VENDOR}* \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050041"
42
Patrick Williamsc124f4f2015-09-15 14:41:29 -050043do_package[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
44do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
45do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
46do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
47
48INSANE_SKIP_${PN}-dev = "staticdev"
49