summaryrefslogtreecommitdiff
path: root/meta/packages/binutils
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-13 15:39:23 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-13 15:39:23 +0000
commit94ceada493c24a5d529873282ba47c57b210e700 (patch)
tree49f99603c8a628dde6a8737af18a2d1bfc71806f /meta/packages/binutils
parent91989087553a608b0988f8b9ed3b93dba7cf48c8 (diff)
downloadopenembedded-core-94ceada493c24a5d529873282ba47c57b210e700.tar.gz
openembedded-core-94ceada493c24a5d529873282ba47c57b210e700.tar.bz2
openembedded-core-94ceada493c24a5d529873282ba47c57b210e700.zip
binutils-cross.inc: Convert to use sysroot staging approach
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/binutils')
-rw-r--r--meta/packages/binutils/binutils-cross.inc35
1 files changed, 14 insertions, 21 deletions
diff --git a/meta/packages/binutils/binutils-cross.inc b/meta/packages/binutils/binutils-cross.inc
index 63e5cf6a62..bd22c92e16 100644
--- a/meta/packages/binutils/binutils-cross.inc
+++ b/meta/packages/binutils/binutils-cross.inc
@@ -8,29 +8,22 @@ EXTRA_OECONF = "--with-sysroot=${STAGING_DIR_TARGET} \
--enable-install-libbfd \
--disable-werror"
-do_stage () {
- oe_runmake install
+do_install () {
+ oe_runmake 'DESTDIR=${D}' install
# We don't really need these, so we'll remove them...
- rm -rf ${CROSS_DIR}/lib/ldscripts
- rm -rf ${CROSS_DIR}/share/info
- rm -rf ${CROSS_DIR}/share/locale
- rm -rf ${CROSS_DIR}/share/man
- rmdir ${CROSS_DIR}/share || :
- rmdir ${CROSS_DIR}/${libdir}/gcc-lib || :
- rmdir ${CROSS_DIR}/${libdir}64/gcc-lib || :
- rmdir ${CROSS_DIR}/${libdir} || :
- rmdir ${CROSS_DIR}/${libdir}64 || :
- rmdir ${CROSS_DIR}/${prefix} || :
-
- # We want to move this into the target specific location
- 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 || :
+ rm -rf ${D}${CROSS_DIR}/lib/ldscripts
+ rm -rf ${D}${CROSS_DIR}/share/info
+ rm -rf ${D}${CROSS_DIR}/share/locale
+ rm -rf ${D}${CROSS_DIR}/share/man
+ rmdir ${D}${CROSS_DIR}/share || :
+ rmdir ${D}${CROSS_DIR}/${libdir}/gcc-lib || :
+ rmdir ${D}${CROSS_DIR}/${libdir}64/gcc-lib || :
+ rmdir ${D}${CROSS_DIR}/${libdir} || :
+ rmdir ${D}${CROSS_DIR}/${libdir}64 || :
+ rmdir ${D}${CROSS_DIR}/${prefix} || :
}
-do_install () {
- :
+do_stage () {
+ use_do_install_for_stage
}