From b301f71f305e9c799113a999b36371b5dd12c48f Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 27 Jun 2022 15:40:42 -0500 Subject: [PATCH] optee-os: Use software RNG on AM62x and J721s2 The TRNG driver is not currently functional for these two platforms. Disable the TRNG driver until fixed. Reported-by: Vignesh Raghavendra Signed-off-by: Andrew Davis Reviewed-by: Praneeth Bajjuri Signed-off-by: Ryan Eatmon --- recipes-security/optee/optee-os_%.bbappend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-security/optee/optee-os_%.bbappend b/recipes-security/optee/optee-os_%.bbappend index 16c10979..7fe5f26e 100644 --- a/recipes-security/optee/optee-os_%.bbappend +++ b/recipes-security/optee/optee-os_%.bbappend @@ -6,6 +6,10 @@ DEPENDS_append_ti-soc = " python3-cryptography-native" EXTRA_OEMAKE_append_k3 = "${@ 'CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}" +EXTRA_OEMAKE_append_am62xx-evm = " CFG_WITH_SOFTWARE_PRNG=y" +EXTRA_OEMAKE_append_j721s2-evm = " CFG_WITH_SOFTWARE_PRNG=y" +EXTRA_OEMAKE_append_j721s2-hs-evm = " CFG_WITH_SOFTWARE_PRNG=y" + do_compile_prepend_ti-soc() { export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} }