diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-13 15:39:23 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-13 15:39:23 +0000 |
commit | 94ceada493c24a5d529873282ba47c57b210e700 (patch) | |
tree | 49f99603c8a628dde6a8737af18a2d1bfc71806f /meta/packages | |
parent | 91989087553a608b0988f8b9ed3b93dba7cf48c8 (diff) | |
download | poky-94ceada493c24a5d529873282ba47c57b210e700.tar.gz |
binutils-cross.inc: Convert to use sysroot staging approach
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/binutils/binutils-cross.inc | 35 |
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} \ | |||
8 | --enable-install-libbfd \ | 8 | --enable-install-libbfd \ |
9 | --disable-werror" | 9 | --disable-werror" |
10 | 10 | ||
11 | do_stage () { | 11 | do_install () { |
12 | oe_runmake install | 12 | oe_runmake 'DESTDIR=${D}' install |
13 | 13 | ||
14 | # We don't really need these, so we'll remove them... | 14 | # We don't really need these, so we'll remove them... |
15 | rm -rf ${CROSS_DIR}/lib/ldscripts | 15 | rm -rf ${D}${CROSS_DIR}/lib/ldscripts |
16 | rm -rf ${CROSS_DIR}/share/info | 16 | rm -rf ${D}${CROSS_DIR}/share/info |
17 | rm -rf ${CROSS_DIR}/share/locale | 17 | rm -rf ${D}${CROSS_DIR}/share/locale |
18 | rm -rf ${CROSS_DIR}/share/man | 18 | rm -rf ${D}${CROSS_DIR}/share/man |
19 | rmdir ${CROSS_DIR}/share || : | 19 | rmdir ${D}${CROSS_DIR}/share || : |
20 | rmdir ${CROSS_DIR}/${libdir}/gcc-lib || : | 20 | rmdir ${D}${CROSS_DIR}/${libdir}/gcc-lib || : |
21 | rmdir ${CROSS_DIR}/${libdir}64/gcc-lib || : | 21 | rmdir ${D}${CROSS_DIR}/${libdir}64/gcc-lib || : |
22 | rmdir ${CROSS_DIR}/${libdir} || : | 22 | rmdir ${D}${CROSS_DIR}/${libdir} || : |
23 | rmdir ${CROSS_DIR}/${libdir}64 || : | 23 | rmdir ${D}${CROSS_DIR}/${libdir}64 || : |
24 | rmdir ${CROSS_DIR}/${prefix} || : | 24 | rmdir ${D}${CROSS_DIR}/${prefix} || : |
25 | |||
26 | # We want to move this into the target specific location | ||
27 | mkdir -p ${STAGING_DIR_TARGET}/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 | ||
30 | rmdir ${CROSS_DIR}/lib || : | ||
31 | rmdir ${CROSS_DIR}/lib64 || : | ||
32 | } | 25 | } |
33 | 26 | ||
34 | do_install () { | 27 | do_stage () { |
35 | : | 28 | use_do_install_for_stage |
36 | } | 29 | } |