1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

toolchain-scripts: allow non-sh post-relocate

Currently, we look only for scripts matching *.sh, which means we can't
write post-relocate scripts in other languages.

Expand this to allow any type of script.

(From OE-Core rev: 5569a6ec6d3c4358719350cac88afa69a76097a8)

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Martin Kelly
2018-06-04 16:05:58 -07:00
committed by Richard Purdie
parent fa415be194
commit d7bd3d6575
+4 -1
View File
@@ -124,7 +124,10 @@ toolchain_create_post_relocate_script() {
cat >> $script <<EOF
if [ -d "${SDKPATHNATIVE}/post-relocate-setup.d/" ]; then
for s in ${SDKPATHNATIVE}/post-relocate-setup.d/*.sh; do
for s in ${SDKPATHNATIVE}/post-relocate-setup.d/*; do
if [ ! -x \$s ]; then
continue
fi
\$s "\$1"
done
rm -rf "${SDKPATHNATIVE}/post-relocate-setup.d"