aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo@opensourcefoundries.com>2018-01-08 23:41:36 -0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-14 09:11:26 +0000
commit9d82fffd24742a5eb40bcb9b9ecea01a42be0be6 (patch)
tree8b0d93f06eaa7053d1aee723538e3a8e0e7247c0
parent695b234ea4f034d428f8cffacceabc2b8f00bc74 (diff)
downloadopenembedded-core-contrib-9d82fffd24742a5eb40bcb9b9ecea01a42be0be6.tar.gz
openembedded-core-contrib-9d82fffd24742a5eb40bcb9b9ecea01a42be0be6.tar.bz2
openembedded-core-contrib-9d82fffd24742a5eb40bcb9b9ecea01a42be0be6.zip
kernel.bbclass: remove bashism in kernel_do_install
possible bashism in run.do_install line 163 (should be 'b = a'): if [ "kernel" == "kernel" ]; then Fixes "[: kernel: unexpected operator" when not using bash by default, which causes the default kernel image link to not be created. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index f7b612f84f2..c42f85c6656 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -363,7 +363,7 @@ kernel_do_install() {
install -d ${D}/boot
for type in ${KERNEL_IMAGETYPES} ; do
install -m 0644 ${KERNEL_OUTPUT_DIR}/${type} ${D}/${KERNEL_IMAGEDEST}/${type}-${KERNEL_VERSION}
- if [ "${KERNEL_PACKAGE_NAME}" == "kernel" ]; then
+ if [ "${KERNEL_PACKAGE_NAME}" = "kernel" ]; then
ln -sf ${type}-${KERNEL_VERSION} ${D}/${KERNEL_IMAGEDEST}/${type}
fi
done