Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | inherit cross-canadian |
| 2 | |
| 3 | SUMMARY = "GNU binary utilities (cross-canadian for ${TARGET_ARCH} target)" |
| 4 | PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}" |
| 5 | BPN = "binutils" |
| 6 | |
| 7 | DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc-crosssdk virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex" |
| 8 | EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | --enable-poison-system-directories \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | " |
| 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. |
| 14 | EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH" |
| 15 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 16 | LDGOLD:sdkmingw32 = "" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 17 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | do_install () { |
| 19 | autotools_do_install |
| 20 | |
| 21 | # We're not interested in the libs or headers, these would come from the |
| 22 | # nativesdk or target version of the binutils recipe |
| 23 | rm -rf ${D}${prefix}/${TARGET_SYS} |
| 24 | rm -f ${D}${libdir}/libbfd* |
| 25 | rm -f ${D}${libdir}/libiberty* |
| 26 | rm -f ${D}${libdir}/libopcodes* |
| 27 | rm -f ${D}${includedir}/*.h |
| 28 | |
| 29 | cross_canadian_bindirlinks |
| 30 | } |
| 31 | |
| 32 | BBCLASSEXTEND = "" |