]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: remove bashism in kernel_do_install
authorRicardo Salveti <ricardo@opensourcefoundries.com>
Tue, 9 Jan 2018 01:41:36 +0000 (23:41 -0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 14 Jan 2018 09:11:26 +0000 (09:11 +0000)
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>
meta/classes/kernel.bbclass

index f7b612f84f22e21b37b0bf2b137759be93cec376..c42f85c66561131dbb1ac6e9eda0d8fa7167c48d 100644 (file)
@@ -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