diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2018-09-14 11:10:07 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-21 18:45:46 -0700 |
commit | 13f2911a3dbf8201a513229b2ed9861e583a58ef (patch) | |
tree | 6de6ac134eaf4f7648b5f873ff5033148eb5ba90 /meta | |
parent | fdc018106297c2fdb849e97cba494153b217d6a7 (diff) | |
download | poky-13f2911a3dbf8201a513229b2ed9861e583a58ef.tar.gz |
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.
(From OE-Core rev: ba2f5ad890ecf94f541d84cc04669a6b02990d39)
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/newlib/libgloss_3.0.0.bb | 3 |
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() { | |||
21 | mv -v ${D}${prefix}/${TARGET_SYS}/lib/* ${D}${libdir} | 21 | mv -v ${D}${prefix}/${TARGET_SYS}/lib/* ${D}${libdir} |
22 | 22 | ||
23 | # Remove original directory | 23 | # Remove original directory |
24 | rmdir ${D}${prefix}/${TARGET_SYS}/lib | 24 | rmdir -p --ignore-fail-on-non-empty ${D}${prefix}/${TARGET_SYS}/lib |
25 | rmdir ${D}${prefix}/${TARGET_SYS} | ||
26 | } | 25 | } |
27 | 26 | ||
28 | # Split packages correctly | 27 | # Split packages correctly |