]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toolchain-scripts: allow non-sh post-relocate
authorMartin Kelly <mkelly@xevo.com>
Mon, 4 Jun 2018 23:05:58 +0000 (16:05 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Jun 2018 07:52:13 +0000 (08:52 +0100)
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.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/toolchain-scripts.bbclass

index 278cbc063dc477159ebe0162c734874bdc64a84a..7e2f8be81cfe71813ae15361a86063511b237e94 100644 (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"