[oe] [PATCH] meta-toolchain: Run rmdir only if empty dirs are actually found.
Antonio Ospite
ospite at studenti.unina.it
Sat Feb 13 19:32:37 UTC 2010
Prevent a failure in do_populate_sdk when there are no empty
directories:
/bin/rmdir: missing operand
Try `/bin/rmdir --help' for more information.
See also http://tinderbox.openembedded.net/packages/478437/
Signed-off-by: Antonio Ospite <ospite at studenti.unina.it>
---
recipes/meta/meta-toolchain.bb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/recipes/meta/meta-toolchain.bb b/recipes/meta/meta-toolchain.bb
index a8c27ec..3169425 100644
--- a/recipes/meta/meta-toolchain.bb
+++ b/recipes/meta/meta-toolchain.bb
@@ -67,7 +67,7 @@ do_populate_sdk() {
rm -Rf ${SDK_OUTPUT}/usr/lib
# Clean up empty directories from excluded packages
- find ${SDK_OUTPUT} -depth -type d -empty -print0 | xargs -0 /bin/rmdir
+ find ${SDK_OUTPUT} -depth -type d -empty -print0 | xargs -r0 /bin/rmdir
install -d ${SDK_OUTPUT}/${SDKPATH}/${TARGET_SYS}/${sysconfdir}
install -m 0644 ${IPKGCONF_TARGET} ${IPKGCONF_SDK} ${SDK_OUTPUT}/${SDKPATH}/${TARGET_SYS}/${sysconfdir}/
--
1.6.6.2
More information about the Openembedded-devel
mailing list