diff options
author | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2018-01-08 23:41:36 -0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-14 09:11:57 +0000 |
commit | ef4caecccbce546734e0ccf62f560f77076586d2 (patch) | |
tree | 34bb78d5a29d483ab76941ea229238a2b3da1bff /meta/classes | |
parent | 598a4e9e85467bafc85b6b801d9e5a01322d7824 (diff) | |
download | poky-ef4caecccbce546734e0ccf62f560f77076586d2.tar.gz |
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.
(From OE-Core rev: 9d82fffd24742a5eb40bcb9b9ecea01a42be0be6)
Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.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.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index f7b612f84f..c42f85c665 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -363,7 +363,7 @@ kernel_do_install() { | |||
363 | install -d ${D}/boot | 363 | install -d ${D}/boot |
364 | for type in ${KERNEL_IMAGETYPES} ; do | 364 | for type in ${KERNEL_IMAGETYPES} ; do |
365 | install -m 0644 ${KERNEL_OUTPUT_DIR}/${type} ${D}/${KERNEL_IMAGEDEST}/${type}-${KERNEL_VERSION} | 365 | install -m 0644 ${KERNEL_OUTPUT_DIR}/${type} ${D}/${KERNEL_IMAGEDEST}/${type}-${KERNEL_VERSION} |
366 | if [ "${KERNEL_PACKAGE_NAME}" == "kernel" ]; then | 366 | if [ "${KERNEL_PACKAGE_NAME}" = "kernel" ]; then |
367 | ln -sf ${type}-${KERNEL_VERSION} ${D}/${KERNEL_IMAGEDEST}/${type} | 367 | ln -sf ${type}-${KERNEL_VERSION} ${D}/${KERNEL_IMAGEDEST}/${type} |
368 | fi | 368 | fi |
369 | done | 369 | done |