mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-04-20 19:53:43 +00:00
trusted-firmware-a: Only sign files for platforms that support it
We are seeing some testing issues where the new code that signs all of the files at all times is causing issues. So rollback the logic and only sign for platforms that support it. Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
@@ -12,12 +12,48 @@ inherit ti-secdev
|
||||
EXTRA_OEMAKE:append:k3 = "${@ ' K3_USART=' + d.getVar('TFA_K3_USART') if d.getVar('TFA_K3_USART') else ''}"
|
||||
EXTRA_OEMAKE:append:k3 = "${@ ' K3_PM_SYSTEM_SUSPEND=' + d.getVar('TFA_K3_SYSTEM_SUSPEND') if d.getVar('TFA_K3_SYSTEM_SUSPEND') else ''}"
|
||||
|
||||
# Signing procedure for K3 devices
|
||||
do_compile:append:k3() {
|
||||
# Signing procedure for K3 HS devices
|
||||
tfa_sign_k3hs() {
|
||||
mv ${BUILD_DIR}/bl31.bin ${BUILD_DIR}/bl31.bin.unsigned
|
||||
${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${BUILD_DIR}/bl31.bin.unsigned ${BUILD_DIR}/bl31.bin
|
||||
}
|
||||
|
||||
do_compile:append:am65xx-hs-evm() {
|
||||
tfa_sign_k3hs
|
||||
}
|
||||
|
||||
do_compile:append:am64xx-evm() {
|
||||
tfa_sign_k3hs
|
||||
}
|
||||
|
||||
do_compile:append:am62xx-evm() {
|
||||
tfa_sign_k3hs
|
||||
}
|
||||
|
||||
do_compile:append:am62xx-lp-evm() {
|
||||
tfa_sign_k3hs
|
||||
}
|
||||
|
||||
do_compile:append:am62axx-evm() {
|
||||
tfa_sign_k3hs
|
||||
}
|
||||
|
||||
do_compile:append:j721e-hs-evm() {
|
||||
tfa_sign_k3hs
|
||||
}
|
||||
|
||||
do_compile:append:j7200-hs-evm() {
|
||||
tfa_sign_k3hs
|
||||
}
|
||||
|
||||
do_compile:append:j721s2-hs-evm() {
|
||||
tfa_sign_k3hs
|
||||
}
|
||||
|
||||
do_compile:append:j784s4-hs-evm() {
|
||||
tfa_sign_k3hs
|
||||
}
|
||||
|
||||
do_install:append:k3() {
|
||||
if [ -f ${BUILD_DIR}/bl31.bin.unsigned ]; then
|
||||
echo "Install bl31.bin.unsigned"
|
||||
|
||||
Reference in New Issue
Block a user