blob: 12e7d77d8d856862c5f4001a556735de1866bbe8 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001inherit cross-canadian
2
3SUMMARY = "GNU binary utilities (cross-canadian for ${TARGET_ARCH} target)"
4PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}"
5BPN = "binutils"
6
7DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc-crosssdk virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex"
8EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009 --enable-poison-system-directories \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050010 "
11
12# We have to point binutils at a sysroot but we don't need to rebuild if this changes
13# e.g. we switch between different machines with different tunes.
14EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH"
15
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016do_install () {
17 autotools_do_install
18
19 # We're not interested in the libs or headers, these would come from the
20 # nativesdk or target version of the binutils recipe
21 rm -rf ${D}${prefix}/${TARGET_SYS}
22 rm -f ${D}${libdir}/libbfd*
23 rm -f ${D}${libdir}/libiberty*
24 rm -f ${D}${libdir}/libopcodes*
25 rm -f ${D}${includedir}/*.h
Andrew Geissler87f5cff2022-09-30 13:13:31 -050026 rm -f ${D}${sysconfdir}/gprofng.rc
27 rmdir ${D}${sysconfdir} || :
28
Patrick Williamsc124f4f2015-09-15 14:41:29 -050029 cross_canadian_bindirlinks
30}
31
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032BBCLASSEXTEND = ""