mirror of
https://git.yoctoproject.org/poky
synced 2026-02-15 05:03:03 +01:00
There is little point in having "crosssdk" suffex added to the virtual provider within gcc/go since the TARGET_PREFIX or SDK_PREFIX already encapsulates this. Remove it allowing some of the special case overriding to be removed. This also allows removal of some of the MLPREFIX usage since again, the triplet also covers this. (From OE-Core rev: fe0206ba482d209b24e636d578aa68ba5e67ba1b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
33 lines
1.1 KiB
PHP
33 lines
1.1 KiB
PHP
inherit cross-canadian
|
|
|
|
SUMMARY = "GNU binary utilities (cross-canadian for ${TARGET_ARCH} target)"
|
|
PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}"
|
|
BPN = "binutils"
|
|
|
|
DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex"
|
|
EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
|
|
--enable-poison-system-directories \
|
|
"
|
|
|
|
# We have to point binutils at a sysroot but we don't need to rebuild if this changes
|
|
# e.g. we switch between different machines with different tunes.
|
|
EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH"
|
|
|
|
do_install () {
|
|
autotools_do_install
|
|
|
|
# We're not interested in the libs or headers, these would come from the
|
|
# nativesdk or target version of the binutils recipe
|
|
rm -rf ${D}${prefix}/${TARGET_SYS}
|
|
rm -f ${D}${libdir}/libbfd*
|
|
rm -f ${D}${libdir}/libiberty*
|
|
rm -f ${D}${libdir}/libopcodes*
|
|
rm -f ${D}${includedir}/*.h
|
|
rm -f ${D}${sysconfdir}/gprofng.rc
|
|
rmdir ${D}${sysconfdir} || :
|
|
|
|
cross_canadian_bindirlinks
|
|
}
|
|
|
|
BBCLASSEXTEND = ""
|