mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-09 01:14:40 +02:00
37 lines
1.9 KiB
BlitzBasic
37 lines
1.9 KiB
BlitzBasic
SUMMARY = "The GNU Compiler Collection - libgcc"
|
|
HOMEPAGE = "http://www.gnu.org/software/gcc/"
|
|
SECTION = "devel"
|
|
DEPENDS += "virtual/${TARGET_PREFIX}binutils"
|
|
GCC_VERSION := "${@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} += "${@'${PREFERRED_PROVIDER_virtual/libc}' if '${PREFERRED_PROVIDER_virtual/libc}' else '${TCLIBC}'}"
|
|
INSANE_SKIP_${PN} += "build-deps file-rdeps"
|
|
|
|
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"
|