Enables FIT Image signing for K3 platforms

Signed-off-by: Manorit Chawdhry <[email protected]>
---
 meta-ti-bsp/conf/machine/include/k3.inc                  | 7 +++++++
 meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb | 1 +
 2 files changed, 8 insertions(+)

diff --git a/meta-ti-bsp/conf/machine/include/k3.inc 
b/meta-ti-bsp/conf/machine/include/k3.inc
index f8bfb3dbcafc..eb25fa780407 100644
--- a/meta-ti-bsp/conf/machine/include/k3.inc
+++ b/meta-ti-bsp/conf/machine/include/k3.inc
@@ -31,6 +31,13 @@ SPL_BINARY = "tispl.bin"
 SPL_BINARYNAME = "tispl.bin"
 UBOOT_SUFFIX = "img"
 
+UBOOT_SIGN_ENABLE = "1"
+UBOOT_MKIMAGE_DTCOPTS = "-I dts -O dtb"
+UBOOT_SIGN_KEYNAME ?= "custMpk"
+UBOOT_SIGN_KEYDIR ?= "${TI_SECURE_DEV_PKG}/keys"
+FIT_HASH_ALG ?= "sha512"
+FIT_SIGN_ALG ?= "rsa4096"
+
 EXTRA_IMAGEDEPENDS += "virtual/bootloader"
 
 TFA_PLATFORM = "k3"
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb 
b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb
index 12ac61d18c6b..3e7e124a80f4 100644
--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb
+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb
@@ -3,6 +3,7 @@ SUMMARY = "Linux kernel for TI devices"
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 
+inherit ti-secdev
 inherit kernel
 
 require recipes-kernel/linux/setup-defconfig.inc

---
base-commit: 02fb90c7972aa53ad6c3599a161ec62fd91d1efa
change-id: 20230613-b4-internal-core-secdev-fit-027b8db6a112

Best regards,
-- 
Manorit Chawdhry <[email protected]>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16717): 
https://lists.yoctoproject.org/g/meta-ti/message/16717
Mute This Topic: https://lists.yoctoproject.org/mt/99523231/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to