From 4658a3fca9935187e267c4bb6e62f8bd5e497835 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sat, 13 Feb 2010 09:32:37 +0000 Subject: 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 Acked-by: Denys Dmytriyenko Acked-by: Stefan Schmidt --- recipes/meta/meta-toolchain.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/meta') 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}/ -- cgit 1.2.3-korg