binutils-cross-canadian.inc 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. inherit cross-canadian
  2. SUMMARY = "GNU binary utilities (cross-canadian for ${TARGET_ARCH} target)"
  3. PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}"
  4. BPN = "binutils"
  5. DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc-crosssdk virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex"
  6. EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
  7. --enable-poison-system-directories \
  8. "
  9. # We have to point binutils at a sysroot but we don't need to rebuild if this changes
  10. # e.g. we switch between different machines with different tunes.
  11. EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH"
  12. LDGOLD:sdkmingw32 = ""
  13. do_install () {
  14. autotools_do_install
  15. # We're not interested in the libs or headers, these would come from the
  16. # nativesdk or target version of the binutils recipe
  17. rm -rf ${D}${prefix}/${TARGET_SYS}
  18. rm -f ${D}${libdir}/libbfd*
  19. rm -f ${D}${libdir}/libiberty*
  20. rm -f ${D}${libdir}/libopcodes*
  21. rm -f ${D}${includedir}/*.h
  22. cross_canadian_bindirlinks
  23. }
  24. BBCLASSEXTEND = ""