diff options
author | Tom Rini <tom_rini@mentor.com> | 2010-05-03 17:14:12 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-05-05 15:06:08 +0100 |
commit | f333d06ee4b55b9c3791edb4a191688b19d6724b (patch) | |
tree | a3a00e044fa9a820b6c2246e72b446f32c2d2a50 /classes | |
parent | 728b0b740ed254da9d7590505647a9e197bfb272 (diff) |
cross.bbclass: In sysroot_stage_all, only process src dirs if they exist.
Fixes module-init-tools-cross on DISTRO=minimal MACHINE=mpc8315e-rdb
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/cross.bbclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/cross.bbclass b/classes/cross.bbclass index 70178b2a77..69f6511753 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 } # |