2009-09-16 23:49:03 +00:00
|
|
|
inherit cross-canadian
|
2010-12-01 02:13:01 +00:00
|
|
|
|
|
|
|
DESCRIPTION = "A GNU collection of cross-canadian binary utilities 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"
|
|
|
|
|
2010-01-14 10:21:45 +00:00
|
|
|
DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc-crosssdk virtual/libc-nativesdk zlib-nativesdk gettext-nativesdk"
|
2011-10-21 05:02:40 +00:00
|
|
|
EXTRA_OECONF = "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
|
2011-02-09 10:35:49 +00:00
|
|
|
--program-prefix=${TARGET_PREFIX} \
|
2012-01-05 06:30:38 +00:00
|
|
|
--disable-werror \
|
|
|
|
${@base_contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default', '', d)}"
|
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
|
2009-09-16 23:49:03 +00:00
|
|
|
}
|