From 82745e4f32e83a49e2fbb825ace8d3452c37b4d4 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 26 Jan 2011 10:04:46 +0000 Subject: cross.bbclass: Move sysroot_stage_all function to the only place that uses it now (gcc-cross-intermediate) Signed-off-by: Richard Purdie --- meta/classes/cross.bbclass | 13 ------------- meta/recipes-devtools/gcc/gcc-cross-intermediate.inc | 12 ++++++++++++ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index 2564505d6..f9fd07a9a 100644 --- a/meta/classes/cross.bbclass +++ b/meta/classes/cross.bbclass @@ -62,16 +62,3 @@ do_install () { oe_runmake 'DESTDIR=${D}' install } -# -# Override the default sysroot staging copy since this won't look like a target system -# -sysroot_stage_all() { - sysroot_stage_dir ${D} ${SYSROOT_DESTDIR} - install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/ - install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ - mv ${SYSROOT_DESTDIR}${target_base_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/ || true - mv ${SYSROOT_DESTDIR}${target_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ || true -} - - - diff --git a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc index 01571a320..2e5283d69 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-intermediate.inc @@ -45,3 +45,15 @@ do_install () { ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t done } + +# +# Override the default sysroot staging copy since this won't look like a target system +# +sysroot_stage_all() { + sysroot_stage_dir ${D} ${SYSROOT_DESTDIR} + install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/ + install -d ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ + mv ${SYSROOT_DESTDIR}${target_base_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}/ || true + mv ${SYSROOT_DESTDIR}${target_libdir}/* ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}/ || true +} + -- cgit v1.2.3