summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2018-09-14 11:10:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-21 08:15:19 -0700
commitba2f5ad890ecf94f541d84cc04669a6b02990d39 (patch)
treeed1b7d11ef83ab5d6b3a0f5513221a5652a2f2fb
parent48fe0e83435f9fb53b1e5b37d5d9f1c2caccd22d (diff)
downloadopenembedded-core-contrib-ba2f5ad890ecf94f541d84cc04669a6b02990d39.tar.gz
openembedded-core-contrib-ba2f5ad890ecf94f541d84cc04669a6b02990d39.tar.bz2
openembedded-core-contrib-ba2f5ad890ecf94f541d84cc04669a6b02990d39.zip
libgloss_3.0.0.bb: Consolidate rmdir with -p
Consolidate the rmdir of multiple directories with the use of -p to delete the leaf empty directory and any empty ancestor directories. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/recipes-core/newlib/libgloss_3.0.0.bb3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/recipes-core/newlib/libgloss_3.0.0.bb b/meta/recipes-core/newlib/libgloss_3.0.0.bb
index 727062ca5d..e412153dab 100644
--- a/meta/recipes-core/newlib/libgloss_3.0.0.bb
+++ b/meta/recipes-core/newlib/libgloss_3.0.0.bb
@@ -21,8 +21,7 @@ do_install_append() {
mv -v ${D}${prefix}/${TARGET_SYS}/lib/* ${D}${libdir}
# Remove original directory
- rmdir ${D}${prefix}/${TARGET_SYS}/lib
- rmdir ${D}${prefix}/${TARGET_SYS}
+ rmdir -p --ignore-fail-on-non-empty ${D}${prefix}/${TARGET_SYS}/lib
}
# Split packages correctly