summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-uboot.bbclass
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2022-09-01 10:57:12 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-12 08:41:48 +0100
commitce82f937d84388d7c6c014b5e6729229a46d1649 (patch)
tree06e9addb3401d096ca6df770338ae9ae00e0c59c /meta/classes/kernel-uboot.bbclass
parent2a82c3d93a1f3e93c298be3950d80875281830a0 (diff)
downloadpoky-ce82f937d84388d7c6c014b5e6729229a46d1649.tar.gz
meta: introduce UBOOT_MKIMAGE_KERNEL_TYPE
Sometimes an end user might want to choose another kernel type argument for uboot-mkimage other than "kernel", for instance: "kernel_noload". Let's introduce a variable UBOOT_MKIMAGE_KERNEL_TYPE to support that, and it could be used by BSP layers as well. (From OE-Core rev: e288686e97de1265eeeaf452141e1473867efb1b) (From OE-Core rev: a4dfcb15ee2c1349718425eef333f3bc84c2de41) Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 4eb7bbcc2f08b25387a15b7e4a89ef199783c973) Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-uboot.bbclass')
-rw-r--r--meta/classes/kernel-uboot.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/kernel-uboot.bbclass b/meta/classes/kernel-uboot.bbclass
index 2facade818..1bc98e042d 100644
--- a/meta/classes/kernel-uboot.bbclass
+++ b/meta/classes/kernel-uboot.bbclass
@@ -2,6 +2,9 @@
2FIT_KERNEL_COMP_ALG ?= "gzip" 2FIT_KERNEL_COMP_ALG ?= "gzip"
3FIT_KERNEL_COMP_ALG_EXTENSION ?= ".gz" 3FIT_KERNEL_COMP_ALG_EXTENSION ?= ".gz"
4 4
5# Kernel image type passed to mkimage (i.e. kernel kernel_noload...)
6UBOOT_MKIMAGE_KERNEL_TYPE ?= "kernel"
7
5uboot_prep_kimage() { 8uboot_prep_kimage() {
6 if [ -e arch/${ARCH}/boot/compressed/vmlinux ]; then 9 if [ -e arch/${ARCH}/boot/compressed/vmlinux ]; then
7 vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux" 10 vmlinux_path="arch/${ARCH}/boot/compressed/vmlinux"