summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc')
-rw-r--r--meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc15
1 files changed, 7 insertions, 8 deletions
diff --git a/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc b/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc
index 0ea30907..d1de4368 100644
--- a/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc
+++ b/meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc
@@ -3,12 +3,14 @@ inherit ti-secdev
3 3
4EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y" 4EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y"
5 5
6EXTRA_OEMAKE:append:k3 = "${@ ' CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}" 6EXTRA_OEMAKE:append:k3 = " ${@ 'CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}"
7 7
8EXTRA_OEMAKE:append:am62xx = " CFG_TEE_CORE_LOG_LEVEL=1" 8EXTRA_OEMAKE:append:am62xx = " CFG_TEE_CORE_LOG_LEVEL=1"
9EXTRA_OEMAKE:append:am62pxx = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1" 9EXTRA_OEMAKE:append:am62lxx = " CFG_TEE_CORE_LOG_LEVEL=1"
10EXTRA_OEMAKE:append:am62pxx = " CFG_TEE_CORE_LOG_LEVEL=1"
10EXTRA_OEMAKE:append:am62axx = " CFG_TEE_CORE_LOG_LEVEL=1" 11EXTRA_OEMAKE:append:am62axx = " CFG_TEE_CORE_LOG_LEVEL=1"
11EXTRA_OEMAKE:append:j722s = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1" 12EXTRA_OEMAKE:append:am62dxx = " CFG_TEE_CORE_LOG_LEVEL=1"
13EXTRA_OEMAKE:append:j722s = " CFG_TEE_CORE_LOG_LEVEL=1"
12 14
13do_compile:append:k3() { 15do_compile:append:k3() {
14 cp ${B}/core/tee-pager_v2.bin ${B}/bl32.bin 16 cp ${B}/core/tee-pager_v2.bin ${B}/bl32.bin
@@ -46,10 +48,6 @@ do_install:append() {
46 install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true 48 install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true
47 install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true 49 install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true
48 install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true 50 install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true
49
50 # Install embedded TAs
51 mkdir -p ${D}${nonarch_base_libdir}/optee_armtz/
52 install -D -p -m0444 ${B}/ta/*/*.ta ${D}${nonarch_base_libdir}/optee_armtz/
53} 51}
54 52
55optee_deploy_legacyhs() { 53optee_deploy_legacyhs() {
@@ -72,7 +70,8 @@ do_deploy:append:k3() {
72 ln -sf optee/bl32.elf ${DEPLOYDIR}/ 70 ln -sf optee/bl32.elf ${DEPLOYDIR}/
73} 71}
74 72
75FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/" 73# Make the OS depend on embedded TAs
74RDEPENDS:${PN} += "${PN}-ta"
76 75
77# This is needed for bl32.elf 76# This is needed for bl32.elf
78INSANE_SKIP:${PN}:append:k3 = " textrel" 77INSANE_SKIP:${PN}:append:k3 = " textrel"