blob: 739adbd9684dea839c1e26c62f824c228501e296 [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
5PACKAGES = "\
6 ${PN} \
7 ${PN}-dev \
8 ${PN}-dbg \
9"
10
11# All libgcc source is marked with the exception.
12#
13LICENSE_${PN} = "GPL-3.0-with-GCC-exception"
14LICENSE_${PN}-dev = "GPL-3.0-with-GCC-exception"
15LICENSE_${PN}-dbg = "GPL-3.0-with-GCC-exception"
16
17
18FILES_${PN} = "${base_libdir}/libgcc*.so.*"
19FILES_${PN}-dev = "\
20 ${base_libdir}/libgcc*.so \
21 ${libdir}/${TARGET_SYS}/${BINV}/*crt* \
22 ${libdir}/${TARGET_SYS}/${BINV}/64 \
23 ${libdir}/${TARGET_SYS}/${BINV}/32 \
24 ${libdir}/${TARGET_SYS}/${BINV}/x32 \
25 ${libdir}/${TARGET_SYS}/${BINV}/n32 \
26 ${libdir}/${TARGET_SYS}/${BINV}/libgcc* \
27 ${@base_conditional('BASETARGET_SYS', '${TARGET_SYS}', '', '${libdir}/${BASETARGET_SYS}', d)} \
28 ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \
29"
30
31FILES_${PN}-dbg += "${base_libdir}/.debug/"
32
33LIBGCCBUILDTREENAME = "gcc-build-internal-"
34
35do_package[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
36do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
37do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
38do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
39
40INSANE_SKIP_${PN}-dev = "staticdev"
41