]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: Remove bashism
authorKhem Raj <raj.khem@gmail.com>
Fri, 12 Dec 2014 20:47:43 +0000 (12:47 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Dec 2014 17:54:13 +0000 (17:54 +0000)
Fixes build on systems using dash for default shell e.g.

errors like

run.do_strip.25842: [[: not found
| readelf: Error: Unable to read in 0x37 bytes of section headers
| readelf: Error: Not an ELF file - it has the wrong magic bytes at the start

Change-Id: I29cac15be44a02d75a3d6889b6ae9b2e19bf46af
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel.bbclass

index fa06c3aae6f3a2c5b4dfa1bdb48812c97955c551..70ed95bbe099c00c61c7a28d18b75338b9cd7871 100644 (file)
@@ -391,7 +391,7 @@ python split_kernel_packages () {
 
 do_strip() {
        if [ -n "${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}" ]; then
-               if [[ "${KERNEL_IMAGETYPE}" != "vmlinux" ]]; then
+               if [ "${KERNEL_IMAGETYPE}" != "vmlinux" ]; then
                        bbwarn "image type will not be stripped (not supported): ${KERNEL_IMAGETYPE}"
                        return
                fi