summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases
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/lib/oeqa/selftest/cases
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/lib/oeqa/selftest/cases')
-rw-r--r--meta/lib/oeqa/selftest/cases/fitimage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/fitimage.py b/meta/lib/oeqa/selftest/cases/fitimage.py
index e6bfd1257e..d732a9020d 100644
--- a/meta/lib/oeqa/selftest/cases/fitimage.py
+++ b/meta/lib/oeqa/selftest/cases/fitimage.py
@@ -738,6 +738,7 @@ UBOOT_LOADADDRESS = "0x80000000"
738UBOOT_DTB_LOADADDRESS = "0x82000000" 738UBOOT_DTB_LOADADDRESS = "0x82000000"
739UBOOT_ARCH = "arm" 739UBOOT_ARCH = "arm"
740UBOOT_MKIMAGE_DTCOPTS = "-I dts -O dtb -p 2000" 740UBOOT_MKIMAGE_DTCOPTS = "-I dts -O dtb -p 2000"
741UBOOT_MKIMAGE_KERNEL_TYPE = "kernel"
741UBOOT_EXTLINUX = "0" 742UBOOT_EXTLINUX = "0"
742FIT_GENERATE_KEYS = "1" 743FIT_GENERATE_KEYS = "1"
743KERNEL_IMAGETYPE_REPLACEMENT = "zImage" 744KERNEL_IMAGETYPE_REPLACEMENT = "zImage"
@@ -763,6 +764,7 @@ FIT_HASH_ALG = "sha256"
763 764
764 kernel_load = str(get_bb_var('UBOOT_LOADADDRESS')) 765 kernel_load = str(get_bb_var('UBOOT_LOADADDRESS'))
765 kernel_entry = str(get_bb_var('UBOOT_ENTRYPOINT')) 766 kernel_entry = str(get_bb_var('UBOOT_ENTRYPOINT'))
767 kernel_type = str(get_bb_var('UBOOT_MKIMAGE_KERNEL_TYPE'))
766 kernel_compression = str(get_bb_var('FIT_KERNEL_COMP_ALG')) 768 kernel_compression = str(get_bb_var('FIT_KERNEL_COMP_ALG'))
767 uboot_arch = str(get_bb_var('UBOOT_ARCH')) 769 uboot_arch = str(get_bb_var('UBOOT_ARCH'))
768 fit_hash_alg = str(get_bb_var('FIT_HASH_ALG')) 770 fit_hash_alg = str(get_bb_var('FIT_HASH_ALG'))
@@ -775,7 +777,7 @@ FIT_HASH_ALG = "sha256"
775 'kernel-1 {', 777 'kernel-1 {',
776 'description = "Linux kernel";', 778 'description = "Linux kernel";',
777 'data = /incbin/("linux.bin");', 779 'data = /incbin/("linux.bin");',
778 'type = "kernel";', 780 'type = "' + kernel_type + '";',
779 'arch = "' + uboot_arch + '";', 781 'arch = "' + uboot_arch + '";',
780 'os = "linux";', 782 'os = "linux";',
781 'compression = "' + kernel_compression + '";', 783 'compression = "' + kernel_compression + '";',