diff options
Diffstat (limited to 'meta-ti-bsp/recipes-bsp/trusted-firmware-a')
-rw-r--r-- | meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend | 39 |
1 files changed, 7 insertions, 32 deletions
diff --git a/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend b/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend index 3ccad86b..01d3f7d5 100644 --- a/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend +++ b/meta-ti-bsp/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend | |||
@@ -9,39 +9,14 @@ TFA_SPD:k3 = "opteed" | |||
9 | SRC_URI:append:k3 = " file://rwx-segments-ti.patch" | 9 | SRC_URI:append:k3 = " file://rwx-segments-ti.patch" |
10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" |
11 | 11 | ||
12 | # Use TI SECDEV for signing | ||
13 | inherit ti-secdev | ||
14 | |||
12 | EXTRA_OEMAKE:append:k3 = "${@ ' K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}" | 15 | 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 ''}" | 16 | EXTRA_OEMAKE:append:k3 = "${@ ' K3_PM_SYSTEM_SUSPEND=' + d.getVar('TFA_K3_SYSTEM_SUSPEND') if d.getVar('TFA_K3_SYSTEM_SUSPEND') else ''}" |
14 | 17 | ||
15 | # Signing procedure for K3 HS devices | 18 | # Signing procedure for K3 devices |
16 | tfa_sign_k3hs() { | 19 | do_compile:append:k3() { |
17 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | 20 | mv ${BUILD_DIR}/bl31.bin ${BUILD_DIR}/bl31.bin.unsigned |
18 | ( cd ${BUILD_DIR}; \ | 21 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${BUILD_DIR}/bl31.bin.unsigned ${BUILD_DIR}/bl31.bin |
19 | mv bl31.bin bl31.bin.unsigned; \ | ||
20 | if [ -f ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ]; then \ | ||
21 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh bl31.bin.unsigned bl31.bin; \ | ||
22 | else \ | ||
23 | echo "Warning: TI_SECURE_DEV_PKG not set, TF-A not signed."; \ | ||
24 | cp bl31.bin.unsigned bl31.bin; \ | ||
25 | fi; \ | ||
26 | ) | ||
27 | } | ||
28 | |||
29 | do_compile:append:am65xx-hs-evm() { | ||
30 | tfa_sign_k3hs | ||
31 | } | ||
32 | |||
33 | do_compile:append:am64xx-evm() { | ||
34 | tfa_sign_k3hs | ||
35 | } | ||
36 | |||
37 | do_compile:append:j721e-hs-evm() { | ||
38 | tfa_sign_k3hs | ||
39 | } | ||
40 | |||
41 | do_compile:append:j7200-hs-evm() { | ||
42 | tfa_sign_k3hs | ||
43 | } | ||
44 | |||
45 | do_compile:append:j721s2-hs-evm() { | ||
46 | tfa_sign_k3hs | ||
47 | } | 22 | } |