aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kelly <mkelly@xevo.com>2018-06-04 16:05:58 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-06-07 08:52:13 +0100
commit5569a6ec6d3c4358719350cac88afa69a76097a8 (patch)
tree5204aa271fb31e1ad81c956af5cbe2905c12b2e3
parent693daaac7399a5a7665cd3bcbc915ff93db36db5 (diff)
downloadopenembedded-core-contrib-5569a6ec6d3c4358719350cac88afa69a76097a8.tar.gz
openembedded-core-contrib-5569a6ec6d3c4358719350cac88afa69a76097a8.tar.bz2
openembedded-core-contrib-5569a6ec6d3c4358719350cac88afa69a76097a8.zip
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. Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/toolchain-scripts.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 278cbc063dc..7e2f8be81cf 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -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"