diff options
author | Andrew Davis <afd@ti.com> | 2023-05-26 15:14:13 -0500 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2023-06-06 08:24:37 -0500 |
commit | 394f7cbdcb564dbc24bc840e0298802ecd4515f4 (patch) | |
tree | 4ead27e89bb9a5062e6f4176aad546e7be50d346 /meta-ti-bsp | |
parent | a42a40ad77ea3f353b3c72071d052cbb0bfaea5f (diff) | |
download | meta-ti-394f7cbdcb564dbc24bc840e0298802ecd4515f4.tar.gz |
optee-os: Do not sign OPTEE OS image for K3
U-Boot with binman will do the signing as these images are packaged.
Remove signing steps here.
Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp')
-rw-r--r-- | meta-ti-bsp/recipes-security/optee/optee-os-ti.inc | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/meta-ti-bsp/recipes-security/optee/optee-os-ti.inc b/meta-ti-bsp/recipes-security/optee/optee-os-ti.inc index e57ce4c7..ff87f37a 100644 --- a/meta-ti-bsp/recipes-security/optee/optee-os-ti.inc +++ b/meta-ti-bsp/recipes-security/optee/optee-os-ti.inc | |||
@@ -11,7 +11,6 @@ EXTRA_OEMAKE:append:am62axx = " CFG_TEE_CORE_LOG_LEVEL=1" | |||
11 | 11 | ||
12 | do_compile:append:k3() { | 12 | do_compile:append:k3() { |
13 | cp ${B}/core/tee-pager_v2.bin ${B}/bl32.bin | 13 | cp ${B}/core/tee-pager_v2.bin ${B}/bl32.bin |
14 | cp ${B}/core/tee-pager_v2.bin ${B}/bl32.bin.unsigned | ||
15 | cp ${B}/core/tee.elf ${B}/bl32.elf | 14 | cp ${B}/core/tee.elf ${B}/bl32.elf |
16 | } | 15 | } |
17 | 16 | ||
@@ -42,53 +41,9 @@ do_compile:append:dra7xx() { | |||
42 | optee_sign_legacyhs | 41 | optee_sign_legacyhs |
43 | } | 42 | } |
44 | 43 | ||
45 | # Signing procedure for K3 devices | ||
46 | optee_sign_k3hs() { | ||
47 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${B}/core/tee-pager_v2.bin ${B}/bl32.bin | ||
48 | cp ${B}/core/tee-pager_v2.bin ${B}/bl32.bin.unsigned | ||
49 | cp ${B}/core/tee.elf ${B}/bl32.elf | ||
50 | } | ||
51 | |||
52 | do_compile:append:am65xx-hs-evm() { | ||
53 | optee_sign_k3hs | ||
54 | } | ||
55 | |||
56 | do_compile:append:am64xx-evm() { | ||
57 | optee_sign_k3hs | ||
58 | } | ||
59 | |||
60 | do_compile:append:am62xx-evm() { | ||
61 | optee_sign_k3hs | ||
62 | } | ||
63 | |||
64 | do_compile:append:am62xx-lp-evm() { | ||
65 | optee_sign_k3hs | ||
66 | } | ||
67 | |||
68 | do_compile:append:am62axx-evm() { | ||
69 | optee_sign_k3hs | ||
70 | } | ||
71 | |||
72 | do_compile:append:j721e-hs-evm() { | ||
73 | optee_sign_k3hs | ||
74 | } | ||
75 | |||
76 | do_compile:append:j7200-hs-evm() { | ||
77 | optee_sign_k3hs | ||
78 | } | ||
79 | |||
80 | do_compile:append:j721s2-hs-evm() { | ||
81 | optee_sign_k3hs | ||
82 | } | ||
83 | |||
84 | do_compile:append:j784s4-hs-evm() { | ||
85 | optee_sign_k3hs | ||
86 | } | ||
87 | |||
88 | do_install:append() { | 44 | do_install:append() { |
89 | install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true | 45 | install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true |
90 | install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true | 46 | install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true |
91 | install -m 644 ${B}/bl32.bin.unsigned ${D}${nonarch_base_libdir}/firmware/ || true | ||
92 | install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true | 47 | install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true |
93 | } | 48 | } |
94 | 49 | ||
@@ -109,7 +64,6 @@ do_deploy:append:dra7xx() { | |||
109 | 64 | ||
110 | do_deploy:append:k3() { | 65 | do_deploy:append:k3() { |
111 | ln -sf optee/bl32.bin ${DEPLOYDIR}/ | 66 | ln -sf optee/bl32.bin ${DEPLOYDIR}/ |
112 | ln -sf optee/bl32.bin.unsigned ${DEPLOYDIR}/ | ||
113 | ln -sf optee/bl32.elf ${DEPLOYDIR}/ | 67 | ln -sf optee/bl32.elf ${DEPLOYDIR}/ |
114 | } | 68 | } |
115 | 69 | ||