Files
meta-external-toolchain/recipes-external/gcc/libgcc-external.bb
Christopher Larson a96f3c86c0 Revert "Drop now-unnecessary <pkg>-dbg bits"
This reverts commit 91b3032784.

We need these explicitly listed in order to ensure we don't just package the
files, but extract them from the sysroot. The best approach would be to
identify elf binaries the way package.bbclass does, and extract the
debuglink path to determine the files to include, but that can be a future
enhancement.

JIRA: SB-8524
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2017-01-03 14:53:30 -07:00

37 lines
1.8 KiB
BlitzBasic

SUMMARY = "The GNU Compiler Collection - libgcc"
HOMEPAGE = "http://www.gnu.org/software/gcc/"
SECTION = "devel"
DEPENDS += "virtual/${TARGET_PREFIX}binutils"
GCC_VERSION := "${@oe.external.run(d, 'gcc', '-dumpversion').rstrip()}"
PV = "${GCC_VERSION}"
inherit external-toolchain
LICENSE = "GPL-3.0-with-GCC-exception"
# libgcc needs libc, but glibc's utilities need libgcc, so short-circuit the
# interdependency here by manually specifying it rather than depending on the
# libc packagedata.
RDEPENDS_${PN} += "${TCLIBC}"
INSANE_SKIP_${PN} += "build-deps"
external_libroot = "${@os.path.realpath('${EXTERNAL_TOOLCHAIN_LIBROOT}').replace(os.path.realpath('${EXTERNAL_TOOLCHAIN}') + '/', '/')}"
FILES_MIRRORS =. "${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/|${external_libroot}/\n"
FILES_${PN} = "${base_libdir}/libgcc_s.so.*"
FILES_${PN}-dev = "${base_libdir}/libgcc_s.so \
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/crtbegin.o \
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/crtbeginS.o \
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/crtbeginT.o \
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/crtend.o \
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/crtendS.o \
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/crtfastmath.o \
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/crtprec*.o \
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/libgcc.a \
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/libgcc_eh.a \
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/include/unwind.h \
${libdir}/gcc/${TARGET_SYS}/${GCC_VERSION}/libgcov.a \
"
INSANE_SKIP_${PN}-dev += "staticdev"
FILES_${PN}-dbg += "${base_libdir}/.debug/libgcc_s.so.*.debug"