summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorAndré Draszik <adraszik@tycoint.com>2017-10-06 13:12:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-05 22:39:47 +0000
commit431cb7213859a3dc17e5c099d171c6b13c59e426 (patch)
tree155f67fff13f271e53d64d4b258ff02a4569a457 /meta/classes
parent1e69586439333a579b020b9ecaddacf4def9c459 (diff)
downloadpoky-431cb7213859a3dc17e5c099d171c6b13c59e426.tar.gz
kernel-uboot: support compressed kernel on MIPS
MIPS generates vmlinuz.bin when compression in the kernel build is enabled, including any necessary objcopy so we can leverage that and skip our manual invocation of objcopy here. We just have to put the file into the right place for the rest of the build to find it. (From OE-Core rev: 3db4004b2982a297a02ebeb6b0cb90cebdb44a0a) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com> (cherry picked from commit 00bc7682473c2558d72ba42c182f8e3bd445f8af) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel-uboot.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/kernel-uboot.bbclass b/meta/classes/kernel-uboot.bbclass
index 868e97d7a7..87f02654fa 100644
--- a/meta/classes/kernel-uboot.bbclass
+++ b/meta/classes/kernel-uboot.bbclass
@@ -3,13 +3,19 @@ uboot_prep_kimage() {
3 vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux" 3 vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux"
4 linux_suffix="" 4 linux_suffix=""
5 linux_comp="none" 5 linux_comp="none"
6 elif [ -e arch/${ARCH}/boot/vmlinuz.bin ]; then
7 rm -f linux.bin
8 cp -l arch/${ARCH}/boot/vmlinuz.bin linux.bin
9 vmlinux_path=""
10 linux_suffix=""
11 linux_comp="none"
6 else 12 else
7 vmlinux_path="vmlinux" 13 vmlinux_path="vmlinux"
8 linux_suffix=".gz" 14 linux_suffix=".gz"
9 linux_comp="gzip" 15 linux_comp="gzip"
10 fi 16 fi
11 17
12 ${OBJCOPY} -O binary -R .note -R .comment -S "${vmlinux_path}" linux.bin 18 [ -n "${vmlinux_path}" ] && ${OBJCOPY} -O binary -R .note -R .comment -S "${vmlinux_path}" linux.bin
13 19
14 if [ "${linux_comp}" != "none" ] ; then 20 if [ "${linux_comp}" != "none" ] ; then
15 gzip -9 linux.bin 21 gzip -9 linux.bin