2009-09-16 23:49:03 +00:00
|
|
|
inherit cross-canadian
|
2010-12-01 02:13:01 +00:00
|
|
|
|
2013-12-22 11:20:03 +00:00
|
|
|
SUMMARY = "GNU binary utilities (cross-canadian for ${TARGET_ARCH} target)"
|
2010-12-06 09:45:45 +00:00
|
|
|
PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}"
|
2010-12-01 02:13:01 +00:00
|
|
|
BPN = "binutils"
|
|
|
|
|
2014-07-24 21:11:51 +00:00
|
|
|
DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc-crosssdk virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex"
|
2012-06-20 15:18:38 +00:00
|
|
|
EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
|
|
|
|
"
|
2013-10-02 13:09:50 +00:00
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
2009-09-16 23:49:03 +00:00
|
|
|
do_install () {
|
2010-12-22 18:05:39 +00:00
|
|
|
autotools_do_install
|
2009-09-16 23:49:03 +00:00
|
|
|
|
2010-07-24 00:07:54 +00:00
|
|
|
# We're not interested in the libs or headers, these would come from the
|
|
|
|
# nativesdk or target version of the binutils recipe
|
2010-08-03 19:04:33 +00:00
|
|
|
rm -rf ${D}${prefix}/${TARGET_SYS}
|
2010-07-24 00:07:54 +00:00
|
|
|
rm -f ${D}${libdir}/libbfd*
|
|
|
|
rm -f ${D}${libdir}/libiberty*
|
|
|
|
rm -f ${D}${libdir}/libopcodes*
|
|
|
|
rm -f ${D}${includedir}/*.h
|
2013-10-17 11:22:35 +00:00
|
|
|
|
|
|
|
cross_canadian_bindirlinks
|
2009-09-16 23:49:03 +00:00
|
|
|
}
|
2012-01-11 14:33:45 +00:00
|
|
|
|
|
|
|
BBCLASSEXTEND = ""
|