summaryrefslogtreecommitdiff
path: root/packages/binutils/binutils-cross.inc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2008-03-15 11:20:16 +0000
committerRichard Purdie <rpurdie@rpsys.net>2008-03-15 11:20:16 +0000
commita15379c569c48b79583cfd16e87b3997b192a602 (patch)
tree101c4e9cc28a92fa3759a69621c327bfb435afd0 /packages/binutils/binutils-cross.inc
parent236f86e711d829bdb2d7adf5d593bcfe70665211 (diff)
binutils-cross.inc: Fix sysroot options, tweak staging and use for all binutils-cross versions
Diffstat (limited to 'packages/binutils/binutils-cross.inc')
-rw-r--r--packages/binutils/binutils-cross.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/binutils/binutils-cross.inc b/packages/binutils/binutils-cross.inc
index 642d5318e7..63e5cf6a62 100644
--- a/packages/binutils/binutils-cross.inc
+++ b/packages/binutils/binutils-cross.inc
@@ -3,7 +3,7 @@ inherit cross
DEPENDS += "flex-native bison-native"
PROVIDES = "virtual/${TARGET_PREFIX}binutils"
PACKAGES = ""
-EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \
+EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \
--program-prefix=${TARGET_PREFIX} \
--enable-install-libbfd \
--disable-werror"
@@ -24,9 +24,9 @@ do_stage () {
rmdir ${CROSS_DIR}/${prefix} || :
# We want to move this into the target specific location
- mkdir -p ${CROSS_DIR}/${TARGET_SYS}/lib
- mv -f ${CROSS_DIR}/lib/libiberty.a ${CROSS_DIR}/${TARGET_SYS}/lib || \
- mv -f ${CROSS_DIR}/lib64/libiberty.a ${CROSS_DIR}/${TARGET_SYS}/lib
+ mkdir -p ${STAGING_DIR_TARGET}/lib
+ mv -f ${CROSS_DIR}/lib/libiberty.a ${STAGING_DIR_TARGET}/lib/lib || \
+ mv -f ${CROSS_DIR}/lib64/libiberty.a ${STAGING_DIR_TARGET}/lib/lib
rmdir ${CROSS_DIR}/lib || :
rmdir ${CROSS_DIR}/lib64 || :
}