Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | inherit cross |
| 2 | PROVIDES = "virtual/${TARGET_PREFIX}binutils" |
| 3 | |
| 4 | PN = "binutils-cross-${TARGET_ARCH}" |
| 5 | BPN = "binutils" |
| 6 | |
| 7 | INHIBIT_DEFAULT_DEPS = "1" |
| 8 | INHIBIT_AUTOTOOLS_DEPS = "1" |
| 9 | |
| 10 | EXTRA_OECONF += "--with-sysroot=${STAGING_DIR_TARGET} \ |
| 11 | --disable-install-libbfd \ |
| 12 | --enable-poison-system-directories \ |
| 13 | " |
| 14 | do_install () { |
| 15 | oe_runmake 'DESTDIR=${D}' install |
| 16 | |
| 17 | # We don't really need these, so we'll remove them... |
| 18 | rm -rf ${D}${STAGING_DIR_NATIVE}${libdir_native}/libiberty.a |
| 19 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS} |
| 20 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/lib/ldscripts |
| 21 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/share/info |
| 22 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/share/locale |
| 23 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/share/man |
| 24 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/share || : |
| 25 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}/gcc-lib || : |
| 26 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}64/gcc-lib || : |
| 27 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir} || : |
| 28 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}64 || : |
| 29 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${prefix} || : |
| 30 | } |