aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2010-05-03 17:14:12 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-05-05 15:06:08 +0100
commitf333d06ee4b55b9c3791edb4a191688b19d6724b (patch)
treea3a00e044fa9a820b6c2246e72b446f32c2d2a50
parent728b0b740ed254da9d7590505647a9e197bfb272 (diff)
downloadopenembedded-rpurdie/work-in-progress.zip
openembedded-rpurdie/work-in-progress.tar.gz
openembedded-rpurdie/work-in-progress.tar.bz2
cross.bbclass: In sysroot_stage_all, only process src dirs if they exist.rpurdie/work-in-progress
Fixes module-init-tools-cross on DISTRO=minimal MACHINE=mpc8315e-rdb Signed-off-by: Tom Rini <tom_rini@mentor.com>
-rw-r--r--classes/cross.bbclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/cross.bbclass b/classes/cross.bbclass
index 70178b2..69f6511 100644
--- a/classes/cross.bbclass
+++ b/classes/cross.bbclass
@@ -67,8 +67,12 @@ 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}/
- sysroot_stage_libdir ${SYSROOT_DESTDIR}${target_base_libdir} ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}
- sysroot_stage_libdir ${SYSROOT_DESTDIR}${target_libdir} ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}
+ if [ -d ${SYSROOT_DESTDIR}${target_base_libdir} ]; then
+ sysroot_stage_libdir ${SYSROOT_DESTDIR}${target_base_libdir} ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_base_libdir}
+ fi
+ if [ -d ${SYSROOT_DESTDIR}${target_libdir} ]; then
+ sysroot_stage_libdir ${SYSROOT_DESTDIR}${target_libdir} ${SYSROOT_DESTDIR}${STAGING_DIR_TARGET}${target_libdir}
+ fi
}
#