summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBedel, Alban <alban.bedel@aerq.com>2019-07-31 13:53:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-09-30 16:44:42 +0100
commit5be20f94d629b8f5ebb34254b98ab6913e54b4e4 (patch)
tree40ea08e8e3bb80383d8cb3ad02ecc7fc1b3a0cf3
parentc046ff7d090f99c9066e9abdafdee747b0d21f2e (diff)
downloadpoky-5be20f94d629b8f5ebb34254b98ab6913e54b4e4.tar.gz
kernel-uboot: compress arm64 kernels
AArch64 images are not self-decompressing, thus usually much larger. Boot times can be reduced by compressing them in FIT and uImages. This commit is a backport of commit a725d188b5 (kernel-uboot: compress arm64 kernels) and commit 60bc7e180e (kernel-uboot: remove useless special casing of arm64 Image) from master. Both commit were melted into one to avoid some useless churn. (From OE-Core rev: 91c42f92cd978a922fff87cb1d0f358c7d9747ea) Signed-off-by: Alban Bedel <alban.bedel@aerq.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel-uboot.bbclass4
1 files changed, 0 insertions, 4 deletions
diff --git a/meta/classes/kernel-uboot.bbclass b/meta/classes/kernel-uboot.bbclass
index 2364053f31..87f02654fa 100644
--- a/meta/classes/kernel-uboot.bbclass
+++ b/meta/classes/kernel-uboot.bbclass
@@ -3,10 +3,6 @@ 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/Image ] ; then
7 vmlinux_path="vmlinux"
8 linux_suffix=""
9 linux_comp="none"
10 elif [ -e arch/${ARCH}/boot/vmlinuz.bin ]; then 6 elif [ -e arch/${ARCH}/boot/vmlinuz.bin ]; then
11 rm -f linux.bin 7 rm -f linux.bin
12 cp -l arch/${ARCH}/boot/vmlinuz.bin linux.bin 8 cp -l arch/${ARCH}/boot/vmlinuz.bin linux.bin