summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorAntonio Ospite <ospite@studenti.unina.it>2010-02-13 09:32:37 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2010-02-14 14:07:22 +0100
commit4658a3fca9935187e267c4bb6e62f8bd5e497835 (patch)
treeb18bfddbd474d52e2246cb243e7789fb3d4116da /recipes
parentc552fa102d908a2f303366cb8100d688b1fe0323 (diff)
meta-toolchain: Run rmdir only if empty dirs are actually found.
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@studenti.unina.it> Acked-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/meta/meta-toolchain.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/meta/meta-toolchain.bb b/recipes/meta/meta-toolchain.bb
index a8c27ecfda..3169425ebf 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}/