diff options
Diffstat (limited to 'recipes-devtools/binutils/binutils-cross.inc')
-rw-r--r-- | recipes-devtools/binutils/binutils-cross.inc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-devtools/binutils/binutils-cross.inc b/recipes-devtools/binutils/binutils-cross.inc new file mode 100644 index 000000000..4b909720d --- /dev/null +++ b/recipes-devtools/binutils/binutils-cross.inc | |||
@@ -0,0 +1,26 @@ | |||
1 | inherit cross | ||
2 | PROVIDES = "virtual/${TARGET_PREFIX}binutils" | ||
3 | |||
4 | EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \ | ||
5 | --program-prefix=${TARGET_PREFIX} \ | ||
6 | --disable-install-libbfd \ | ||
7 | --disable-werror \ | ||
8 | --enable-poison-system-directories" | ||
9 | |||
10 | do_install () { | ||
11 | oe_runmake 'DESTDIR=${D}' install | ||
12 | |||
13 | # We don't really need these, so we'll remove them... | ||
14 | rm -rf ${D}${STAGING_DIR_NATIVE}${libdir_native}/libiberty.a | ||
15 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS} | ||
16 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/lib/ldscripts | ||
17 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/share/info | ||
18 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/share/locale | ||
19 | rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/share/man | ||
20 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/share || : | ||
21 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}/gcc-lib || : | ||
22 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}64/gcc-lib || : | ||
23 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir} || : | ||
24 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${libdir}64 || : | ||
25 | rmdir ${D}${STAGING_DIR_NATIVE}${prefix_native}/${prefix} || : | ||
26 | } | ||