summaryrefslogtreecommitdiffstats
path: root/meta/packages/binutils/binutils-cross.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/binutils/binutils-cross.inc')
-rw-r--r--meta/packages/binutils/binutils-cross.inc12
1 files changed, 9 insertions, 3 deletions
diff --git a/meta/packages/binutils/binutils-cross.inc b/meta/packages/binutils/binutils-cross.inc
index a45a39f..63e5cf6 100644
--- a/meta/packages/binutils/binutils-cross.inc
+++ b/meta/packages/binutils/binutils-cross.inc
@@ -4,7 +4,9 @@ DEPENDS += "flex-native bison-native"
4PROVIDES = "virtual/${TARGET_PREFIX}binutils" 4PROVIDES = "virtual/${TARGET_PREFIX}binutils"
5PACKAGES = "" 5PACKAGES = ""
6EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \ 6EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \
7 --program-prefix=${TARGET_PREFIX}" 7 --program-prefix=${TARGET_PREFIX} \
8 --enable-install-libbfd \
9 --disable-werror"
8 10
9do_stage () { 11do_stage () {
10 oe_runmake install 12 oe_runmake install
@@ -16,13 +18,17 @@ do_stage () {
16 rm -rf ${CROSS_DIR}/share/man 18 rm -rf ${CROSS_DIR}/share/man
17 rmdir ${CROSS_DIR}/share || : 19 rmdir ${CROSS_DIR}/share || :
18 rmdir ${CROSS_DIR}/${libdir}/gcc-lib || : 20 rmdir ${CROSS_DIR}/${libdir}/gcc-lib || :
21 rmdir ${CROSS_DIR}/${libdir}64/gcc-lib || :
19 rmdir ${CROSS_DIR}/${libdir} || : 22 rmdir ${CROSS_DIR}/${libdir} || :
23 rmdir ${CROSS_DIR}/${libdir}64 || :
20 rmdir ${CROSS_DIR}/${prefix} || : 24 rmdir ${CROSS_DIR}/${prefix} || :
21 25
22 # We want to move this into the target specific location 26 # We want to move this into the target specific location
23 mkdir -p ${CROSS_DIR}/${TARGET_SYS}/lib 27 mkdir -p ${STAGING_DIR_TARGET}/lib
24 mv -f ${CROSS_DIR}/lib/libiberty.a ${CROSS_DIR}/${TARGET_SYS}/lib 28 mv -f ${CROSS_DIR}/lib/libiberty.a ${STAGING_DIR_TARGET}/lib/lib || \
29 mv -f ${CROSS_DIR}/lib64/libiberty.a ${STAGING_DIR_TARGET}/lib/lib
25 rmdir ${CROSS_DIR}/lib || : 30 rmdir ${CROSS_DIR}/lib || :
31 rmdir ${CROSS_DIR}/lib64 || :
26} 32}
27 33
28do_install () { 34do_install () {