diff options
author | Martin Kelly <mkelly@xevo.com> | 2018-06-04 16:05:58 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-07 08:52:55 +0100 |
commit | d7bd3d6575a9b51d0e41bd9060dac5664879ffd1 (patch) | |
tree | d5319e27b2d1dcbf5ec03aba46a5991f2a6289d4 /meta/classes | |
parent | fa415be194a1a959176822015fa5359086420605 (diff) | |
download | poky-d7bd3d6575a9b51d0e41bd9060dac5664879ffd1.tar.gz |
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>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 278cbc063d..7e2f8be81c 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -124,7 +124,10 @@ toolchain_create_post_relocate_script() { | |||
124 | 124 | ||
125 | cat >> $script <<EOF | 125 | cat >> $script <<EOF |
126 | if [ -d "${SDKPATHNATIVE}/post-relocate-setup.d/" ]; then | 126 | if [ -d "${SDKPATHNATIVE}/post-relocate-setup.d/" ]; then |
127 | for s in ${SDKPATHNATIVE}/post-relocate-setup.d/*.sh; do | 127 | for s in ${SDKPATHNATIVE}/post-relocate-setup.d/*; do |
128 | if [ ! -x \$s ]; then | ||
129 | continue | ||
130 | fi | ||
128 | \$s "\$1" | 131 | \$s "\$1" |
129 | done | 132 | done |
130 | rm -rf "${SDKPATHNATIVE}/post-relocate-setup.d" | 133 | rm -rf "${SDKPATHNATIVE}/post-relocate-setup.d" |