diff options
| author | Ryan Eatmon <reatmon@ti.com> | 2025-10-20 09:49:32 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-27 11:37:43 +0000 |
| commit | 2b871830dcfa7f9fdef89e113e6919d0d82fcfd2 (patch) | |
| tree | 3be5c7820e214efe00d0b4825c0a6e720c641db0 | |
| parent | 3d67ec276262d8f694be6bc9b492c504d12ae399 (diff) | |
| download | poky-2b871830dcfa7f9fdef89e113e6919d0d82fcfd2.tar.gz | |
kernel-fit-image: Split signing variables
Right now all signing is done with a single variable: UBOOT_SIGN_ENABLE.
This has the side effect of not allowing for signing the fitImage while
not signing the uboot files.
This patch creates three new variables specific to FIT_KERNEL and
defaults them to the corresponding UBOOT variables. That way all
existing code will remain the same, but we can selectively control just
signing the fitImage without also signing the uboot files.
(From OE-Core rev: 313ff06fdfec36a09328dbd60471bd53127fabe3)
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes-recipe/kernel-fit-image.bbclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes-recipe/kernel-fit-image.bbclass b/meta/classes-recipe/kernel-fit-image.bbclass index f04aee1807..16b6ab7b2f 100644 --- a/meta/classes-recipe/kernel-fit-image.bbclass +++ b/meta/classes-recipe/kernel-fit-image.bbclass | |||
| @@ -35,6 +35,10 @@ do_configure[noexec] = "1" | |||
| 35 | UBOOT_MKIMAGE_KERNEL_TYPE ?= "kernel" | 35 | UBOOT_MKIMAGE_KERNEL_TYPE ?= "kernel" |
| 36 | KERNEL_IMAGEDEST ?= "/boot" | 36 | KERNEL_IMAGEDEST ?= "/boot" |
| 37 | 37 | ||
| 38 | FIT_KERNEL_SIGN_ENABLE ?= "${UBOOT_SIGN_ENABLE}" | ||
| 39 | FIT_KERNEL_SIGN_KEYNAME ?= "${UBOOT_SIGN_KEYNAME}" | ||
| 40 | FIT_KERNEL_SIGN_KEYDIR ?= "${UBOOT_SIGN_KEYDIR}" | ||
| 41 | |||
| 38 | python do_compile() { | 42 | python do_compile() { |
| 39 | import shutil | 43 | import shutil |
| 40 | import oe.fitimage | 44 | import oe.fitimage |
| @@ -50,11 +54,11 @@ python do_compile() { | |||
| 50 | root_node = oe.fitimage.ItsNodeRootKernel( | 54 | root_node = oe.fitimage.ItsNodeRootKernel( |
| 51 | d.getVar("FIT_DESC"), d.getVar("FIT_ADDRESS_CELLS"), | 55 | d.getVar("FIT_DESC"), d.getVar("FIT_ADDRESS_CELLS"), |
| 52 | d.getVar('HOST_PREFIX'), d.getVar('UBOOT_ARCH'), d.getVar("FIT_CONF_PREFIX"), | 56 | d.getVar('HOST_PREFIX'), d.getVar('UBOOT_ARCH'), d.getVar("FIT_CONF_PREFIX"), |
| 53 | oe.types.boolean(d.getVar('UBOOT_SIGN_ENABLE')), d.getVar("UBOOT_SIGN_KEYDIR"), | 57 | oe.types.boolean(d.getVar('FIT_KERNEL_SIGN_ENABLE')), d.getVar("FIT_KERNEL_SIGN_KEYDIR"), |
| 54 | d.getVar("UBOOT_MKIMAGE"), d.getVar("UBOOT_MKIMAGE_DTCOPTS"), | 58 | d.getVar("UBOOT_MKIMAGE"), d.getVar("UBOOT_MKIMAGE_DTCOPTS"), |
| 55 | d.getVar("UBOOT_MKIMAGE_SIGN"), d.getVar("UBOOT_MKIMAGE_SIGN_ARGS"), | 59 | d.getVar("UBOOT_MKIMAGE_SIGN"), d.getVar("UBOOT_MKIMAGE_SIGN_ARGS"), |
| 56 | d.getVar('FIT_HASH_ALG'), d.getVar('FIT_SIGN_ALG'), d.getVar('FIT_PAD_ALG'), | 60 | d.getVar('FIT_HASH_ALG'), d.getVar('FIT_SIGN_ALG'), d.getVar('FIT_PAD_ALG'), |
| 57 | d.getVar('UBOOT_SIGN_KEYNAME'), | 61 | d.getVar('FIT_KERNEL_SIGN_KEYNAME'), |
| 58 | oe.types.boolean(d.getVar('FIT_SIGN_INDIVIDUAL')), d.getVar('UBOOT_SIGN_IMG_KEYNAME') | 62 | oe.types.boolean(d.getVar('FIT_SIGN_INDIVIDUAL')), d.getVar('UBOOT_SIGN_IMG_KEYNAME') |
| 59 | ) | 63 | ) |
| 60 | 64 | ||
