diff options
author | Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> | 2020-12-22 14:21:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-09 09:17:16 +0000 |
commit | 10fe06aeb81e90802cfc00bf660f5604d277a095 (patch) | |
tree | 8e8e761a8a5710e345c6c823a816f799bc248827 /meta | |
parent | 66668375f5817adac80e96bfb3972db97d0b8482 (diff) | |
download | poky-10fe06aeb81e90802cfc00bf660f5604d277a095.tar.gz |
populate_sdk_base: Fix condition syntax if SDK_RELOCATE_AFTER_INSTALL is disabled
If variable is set to empty string the comparison is "if [ -eq 1 ]"
which fails with "[: -eq: unary operator expected".
(From OE-Core rev: 5bbafa99ec76a197e433ae3fb1ee44da7be398a5)
Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 36a2dc83fd0e1d6e2b8441e24a4cbc48a6c4fc19)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index 3e5b1359d6..39a7cadaf8 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass | |||
@@ -256,7 +256,7 @@ fakeroot create_shar() { | |||
256 | 256 | ||
257 | rm -f ${T}/pre_install_command ${T}/post_install_command | 257 | rm -f ${T}/pre_install_command ${T}/post_install_command |
258 | 258 | ||
259 | if [ ${SDK_RELOCATE_AFTER_INSTALL} -eq 1 ] ; then | 259 | if [ "${SDK_RELOCATE_AFTER_INSTALL}" = "1" ] ; then |
260 | cp ${TOOLCHAIN_SHAR_REL_TMPL} ${T}/post_install_command | 260 | cp ${TOOLCHAIN_SHAR_REL_TMPL} ${T}/post_install_command |
261 | fi | 261 | fi |
262 | cat << "EOF" >> ${T}/pre_install_command | 262 | cat << "EOF" >> ${T}/pre_install_command |