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