blob: fd3d801491cb5e922766c0fda9e39d897483c71d [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001inherit cross
2PROVIDES = "virtual/${TARGET_PREFIX}binutils"
3
4PN = "binutils-cross-${TARGET_ARCH}"
5BPN = "binutils"
6
7INHIBIT_DEFAULT_DEPS = "1"
8INHIBIT_AUTOTOOLS_DEPS = "1"
9
10EXTRA_OECONF += "--with-sysroot=${STAGING_DIR_TARGET} \
11 --disable-install-libbfd \
12 --enable-poison-system-directories \
13 "
14do_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}