diff options
author | Khem Raj <raj.khem@gmail.com> | 2014-12-12 12:47:43 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-19 17:54:13 +0000 |
commit | 6956ffdc6e9879e32360b6ee3a3d286618807485 (patch) | |
tree | 950ca4b126ea207425f8f619c3bb57abe37883f0 /meta | |
parent | 3505558e067fdde4ab7aaaf3c50886f292d7c166 (diff) | |
download | openembedded-core-6956ffdc6e9879e32360b6ee3a3d286618807485.tar.gz openembedded-core-6956ffdc6e9879e32360b6ee3a3d286618807485.tar.bz2 openembedded-core-6956ffdc6e9879e32360b6ee3a3d286618807485.zip |
kernel.bbclass: Remove bashism
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index fa06c3aae6..70ed95bbe0 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -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 |