mirror of
https://git.yoctoproject.org/poky
synced 2026-06-05 02:20:12 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
fdc0181062
commit
13f2911a3d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user