mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-06-05 02:11:00 +00:00
ti-img-rogue-umlibs: harden handling of usrmerge
Only move directories which haven't already been moved. This prevents a build error should a subsequent bitbake execution rerun do_install where the sources to 'mv' no longer exist. | mv: cannot stat 'ti-img-rogue-umlibs/23.1.6404501/git/targetfs/am62_linux/lws-generic/release/lib/firmware': No such file or directory Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
committed by
Ryan Eatmon
parent
0c872168cb
commit
1ca59a8eae
@@ -68,7 +68,9 @@ do_install:prepend() {
|
||||
done
|
||||
fi
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 'true', 'false', d)}; then
|
||||
mv ${S}/lib/firmware ${S}${nonarch_base_libdir}
|
||||
if [ -e ${S}/lib/firmware ]; then
|
||||
mv ${S}/lib/firmware ${S}${nonarch_base_libdir}
|
||||
fi
|
||||
fi
|
||||
|
||||
# clean up any empty directories
|
||||
|
||||
Reference in New Issue
Block a user