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. do_install () {
  13. autotools_do_install
  14. # We're not interested in the libs or headers, these would come from the
  15. # nativesdk or target version of the binutils recipe
  16. rm -rf ${D}${prefix}/${TARGET_SYS}
  17. rm -f ${D}${libdir}/libbfd*
  18. rm -f ${D}${libdir}/libiberty*
  19. rm -f ${D}${libdir}/libopcodes*
  20. rm -f ${D}${includedir}/*.h
  21. rm -f ${D}${sysconfdir}/gprofng.rc
  22. rmdir ${D}${sysconfdir} || :
  23. cross_canadian_bindirlinks
  24. }
  25. BBCLASSEXTEND = ""