summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2014-12-12 12:47:43 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-19 18:08:00 +0000
commit48b35406c90c3ffb1a2955902b691f15db068904 (patch)
treea2bc0cf91e44ea33dbe5e08569cc251a8f61fe98 /meta/classes
parent31952101f38275e0c4a8e7d6a7c5ebad452a1b5b (diff)
downloadpoky-48b35406c90c3ffb1a2955902b691f15db068904.tar.gz
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 (From OE-Core rev: 6956ffdc6e9879e32360b6ee3a3d286618807485) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 fa06c3aae6..70ed95bbe0 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -391,7 +391,7 @@ python split_kernel_packages () {
391 391
392do_strip() { 392do_strip() {
393 if [ -n "${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}" ]; then 393 if [ -n "${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}" ]; then
394 if [[ "${KERNEL_IMAGETYPE}" != "vmlinux" ]]; then 394 if [ "${KERNEL_IMAGETYPE}" != "vmlinux" ]; then
395 bbwarn "image type will not be stripped (not supported): ${KERNEL_IMAGETYPE}" 395 bbwarn "image type will not be stripped (not supported): ${KERNEL_IMAGETYPE}"
396 return 396 return
397 fi 397 fi