mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
66668375f5
commit
10fe06aeb8
@@ -256,7 +256,7 @@ fakeroot create_shar() {
|
||||
|
||||
rm -f ${T}/pre_install_command ${T}/post_install_command
|
||||
|
||||
if [ ${SDK_RELOCATE_AFTER_INSTALL} -eq 1 ] ; then
|
||||
if [ "${SDK_RELOCATE_AFTER_INSTALL}" = "1" ] ; then
|
||||
cp ${TOOLCHAIN_SHAR_REL_TMPL} ${T}/post_install_command
|
||||
fi
|
||||
cat << "EOF" >> ${T}/pre_install_command
|
||||
|
||||
Reference in New Issue
Block a user