diff options
author | Andrew Davis <afd@ti.com> | 2023-05-26 15:14:12 -0500 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2023-06-06 08:24:37 -0500 |
commit | a42a40ad77ea3f353b3c72071d052cbb0bfaea5f (patch) | |
tree | 85983a2fed333a57d862132340a83c9102660cab | |
parent | 1cddc5bc96f8cdd7cad7eb3ea985b86e2be44ab0 (diff) | |
download | meta-ti-a42a40ad77ea3f353b3c72071d052cbb0bfaea5f.tar.gz |
trusted-firmware-a: Do not sign TF-A 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>
-rw-r--r-- | meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc b/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc index c65ecd9c..cc99f50c 100644 --- a/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc +++ b/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a-ti.inc | |||
@@ -6,62 +6,5 @@ TFA_BUILD_TARGET:k3 = "all" | |||
6 | TFA_INSTALL_TARGET:k3 = "bl31" | 6 | TFA_INSTALL_TARGET:k3 = "bl31" |
7 | TFA_SPD:k3 = "opteed" | 7 | TFA_SPD:k3 = "opteed" |
8 | 8 | ||
9 | # Use TI SECDEV for signing | ||
10 | inherit ti-secdev | ||
11 | |||
12 | EXTRA_OEMAKE:append:k3 = "${@ ' K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}" | 9 | EXTRA_OEMAKE:append:k3 = "${@ ' K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}" |
13 | EXTRA_OEMAKE:append:k3 = "${@ ' K3_PM_SYSTEM_SUSPEND=' + d.getVar('TFA_K3_SYSTEM_SUSPEND') if d.getVar('TFA_K3_SYSTEM_SUSPEND') else ''}" | 10 | EXTRA_OEMAKE:append:k3 = "${@ ' K3_PM_SYSTEM_SUSPEND=' + d.getVar('TFA_K3_SYSTEM_SUSPEND') if d.getVar('TFA_K3_SYSTEM_SUSPEND') else ''}" |
14 | |||
15 | # Signing procedure for K3 HS devices | ||
16 | tfa_sign_k3hs() { | ||
17 | mv ${BUILD_DIR}/bl31.bin ${BUILD_DIR}/bl31.bin.unsigned | ||
18 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${BUILD_DIR}/bl31.bin.unsigned ${BUILD_DIR}/bl31.bin | ||
19 | } | ||
20 | |||
21 | do_compile:append:am65xx-hs-evm() { | ||
22 | tfa_sign_k3hs | ||
23 | } | ||
24 | |||
25 | do_compile:append:am64xx-evm() { | ||
26 | tfa_sign_k3hs | ||
27 | } | ||
28 | |||
29 | do_compile:append:am62xx-evm() { | ||
30 | tfa_sign_k3hs | ||
31 | } | ||
32 | |||
33 | do_compile:append:am62xx-lp-evm() { | ||
34 | tfa_sign_k3hs | ||
35 | } | ||
36 | |||
37 | do_compile:append:am62axx-evm() { | ||
38 | tfa_sign_k3hs | ||
39 | } | ||
40 | |||
41 | do_compile:append:j721e-hs-evm() { | ||
42 | tfa_sign_k3hs | ||
43 | } | ||
44 | |||
45 | do_compile:append:j7200-hs-evm() { | ||
46 | tfa_sign_k3hs | ||
47 | } | ||
48 | |||
49 | do_compile:append:j721s2-hs-evm() { | ||
50 | tfa_sign_k3hs | ||
51 | } | ||
52 | |||
53 | do_compile:append:j784s4-hs-evm() { | ||
54 | tfa_sign_k3hs | ||
55 | } | ||
56 | |||
57 | do_install:append:k3() { | ||
58 | if [ -f ${BUILD_DIR}/bl31.bin.unsigned ]; then | ||
59 | echo "Install bl31.bin.unsigned" | ||
60 | install -m 0644 ${BUILD_DIR}/bl31.bin.unsigned \ | ||
61 | ${D}/firmware/bl31.bin.unsigned | ||
62 | else | ||
63 | echo "Install bl31.bin.unsigned" | ||
64 | install -m 0644 ${BUILD_DIR}/bl31.bin \ | ||
65 | ${D}/firmware/bl31.bin.unsigned | ||
66 | fi | ||
67 | } | ||