From 94ceada493c24a5d529873282ba47c57b210e700 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 13 Nov 2009 15:39:23 +0000 Subject: binutils-cross.inc: Convert to use sysroot staging approach Signed-off-by: Richard Purdie --- meta/packages/binutils/binutils-cross.inc | 35 +++++++++++++------------------ 1 file changed, 14 insertions(+), 21 deletions(-) (limited to 'meta/packages') diff --git a/meta/packages/binutils/binutils-cross.inc b/meta/packages/binutils/binutils-cross.inc index 63e5cf6a6..bd22c92e1 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 } -- cgit v1.2.3