Use the new framework to add alternative key signing for the am62p platform as an example.
Signed-off-by: Ryan Eatmon <[email protected]> --- .../conf/machine/am62pxx-evm-k3r5.conf | 15 +++++++++++---- meta-ti-bsp/conf/machine/am62pxx-evm.conf | 19 ++++++++++++++++++- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf index bf82849a..292b658b 100644 --- a/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf +++ b/meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf @@ -4,15 +4,22 @@ require conf/machine/include/k3r5.inc -UBOOT_MACHINE = "am62px_evm_r5_defconfig" -UBOOT_MACHINE:tie-test-builds = "" +UBOOT_MACHINE = "" -UBOOT_CONFIG = "" -UBOOT_CONFIG:tie-test-builds = "usbdfu main" +UBOOT_ECDSA_SIGN_CONFIG ?= "ecdsa" +UBOOT_ECDSA_SIGN_CONFIG:bsp-ti-6_6 = "" +UBOOT_ECDSA_SIGN_CONFIG:bsp-next = "" +UBOOT_ECDSA_SIGN_CONFIG:bsp-mainline = "" + +UBOOT_CONFIG = "${UBOOT_ECDSA_SIGN_CONFIG} main" +UBOOT_CONFIG:prepend:tie-test-builds = "usbdfu " UBOOT_CONFIG[main] = "am62px_evm_r5_defconfig" +UBOOT_CONFIG[ecdsa] = "am62px_evm_r5_defconfig" UBOOT_CONFIG[usbdfu] = "am62px_evm_r5_defconfig" +UBOOT_CONFIG_MAKE_OPTS[ecdsa] = "${TI_SIGN_WITH_ECDSA_KEY}" + UBOOT_CONFIG_FRAGMENTS[usbdfu] = "am62x_r5_usbdfu.config" UBOOT_FRAGMENTS:ti-falcon = "k3_r5_falcon.config" diff --git a/meta-ti-bsp/conf/machine/am62pxx-evm.conf b/meta-ti-bsp/conf/machine/am62pxx-evm.conf index 4bebe510..bc056e6b 100644 --- a/meta-ti-bsp/conf/machine/am62pxx-evm.conf +++ b/meta-ti-bsp/conf/machine/am62pxx-evm.conf @@ -23,7 +23,24 @@ KERNEL_DEVICETREE = " \ FIT_CONF_DEFAULT_DTB = "k3-am62p5-sk.dtb" -UBOOT_MACHINE = "am62px_evm_a53_defconfig" +UBOOT_ECDSA_SIGN_CONFIG ?= "ecdsa" +UBOOT_ECDSA_SIGN_CONFIG:bsp-ti-6_6 = "" +UBOOT_ECDSA_SIGN_CONFIG:bsp-next = "" +UBOOT_ECDSA_SIGN_CONFIG:bsp-mainline = "" + +ECDSA_BOOT_FILES ?= "tiboot3.bin-ecdsa tiboot3-*-evm.bin-ecdsa tispl.bin-ecdsa u-boot.img-ecdsa" +ECDSA_BOOT_FILES:bsp-ti-6_6 = "" +ECDSA_BOOT_FILES:bsp-next = "" +ECDSA_BOOT_FILES:bsp-mainline = "" + +UBOOT_MACHINE = "" +UBOOT_CONFIG = "${UBOOT_ECDSA_SIGN_CONFIG} main" +UBOOT_CONFIG[main] = "am62px_evm_a53_defconfig" +UBOOT_CONFIG[ecdsa] = "am62px_evm_a53_defconfig" + +UBOOT_CONFIG_MAKE_OPTS[ecdsa] = "${TI_SIGN_WITH_ECDSA_KEY}" + +IMAGE_BOOT_FILES += "${ECDSA_BOOT_FILES}" # UBOOT_FRAGMENTS holds the list of u-boot config fragments which has to be build # along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19456): https://lists.yoctoproject.org/g/meta-ti/message/19456 Mute This Topic: https://lists.yoctoproject.org/mt/117603206/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
