diff options
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.inc | 15 |
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 | ||
4 | EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y" | 4 | EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y" |
5 | 5 | ||
6 | EXTRA_OEMAKE:append:k3 = "${@ ' CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}" | 6 | EXTRA_OEMAKE:append:k3 = " ${@ 'CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') if d.getVar('OPTEE_K3_USART') else ''}" |
7 | 7 | ||
8 | EXTRA_OEMAKE:append:am62xx = " CFG_TEE_CORE_LOG_LEVEL=1" | 8 | EXTRA_OEMAKE:append:am62xx = " CFG_TEE_CORE_LOG_LEVEL=1" |
9 | EXTRA_OEMAKE:append:am62pxx = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1" | 9 | EXTRA_OEMAKE:append:am62lxx = " CFG_TEE_CORE_LOG_LEVEL=1" |
10 | EXTRA_OEMAKE:append:am62pxx = " CFG_TEE_CORE_LOG_LEVEL=1" | ||
10 | EXTRA_OEMAKE:append:am62axx = " CFG_TEE_CORE_LOG_LEVEL=1" | 11 | EXTRA_OEMAKE:append:am62axx = " CFG_TEE_CORE_LOG_LEVEL=1" |
11 | EXTRA_OEMAKE:append:j722s = " CFG_WITH_SOFTWARE_PRNG=y CFG_TEE_CORE_LOG_LEVEL=1" | 12 | EXTRA_OEMAKE:append:am62dxx = " CFG_TEE_CORE_LOG_LEVEL=1" |
13 | EXTRA_OEMAKE:append:j722s = " CFG_TEE_CORE_LOG_LEVEL=1" | ||
12 | 14 | ||
13 | do_compile:append:k3() { | 15 | do_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 | ||
55 | optee_deploy_legacyhs() { | 53 | optee_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 | ||
75 | FILES:${PN} += "${nonarch_base_libdir}/optee_armtz/" | 73 | # Make the OS depend on embedded TAs |
74 | RDEPENDS:${PN} += "${PN}-ta" | ||
76 | 75 | ||
77 | # This is needed for bl32.elf | 76 | # This is needed for bl32.elf |
78 | INSANE_SKIP:${PN}:append:k3 = " textrel" | 77 | INSANE_SKIP:${PN}:append:k3 = " textrel" |