mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-06-06 19:00:49 +00:00
trusted-firmware-a: only activate customizations for TI platforms
Avoid inheriting ti-secdev class and adding unconditional dependency on TI_SECURE_DEV_PKG and other variables, when meta-ti-bsp is in the bblayers.conf stack, but not building for TI platforms. This solves yocto-check-layer signature test for Yocto Project compliance. Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
committed by
Ryan Eatmon
parent
b5913c6344
commit
0f22b0c8a0
@@ -0,0 +1,67 @@
|
||||
PV:k3 = "2.8+git${SRCPV}"
|
||||
SRCREV_tfa:k3 = "2fcd408bb3a6756767a43c073c597cef06e7f2d5"
|
||||
SRC_URI:k3 = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;protocol=https;name=tfa;branch=master"
|
||||
COMPATIBLE_MACHINE:k3 = "k3"
|
||||
TFA_BUILD_TARGET:k3 = "all"
|
||||
TFA_INSTALL_TARGET:k3 = "bl31"
|
||||
TFA_SPD:k3 = "opteed"
|
||||
|
||||
# Use TI SECDEV for signing
|
||||
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 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"
|
||||
install -m 0644 ${BUILD_DIR}/bl31.bin.unsigned \
|
||||
${D}/firmware/bl31.bin.unsigned
|
||||
else
|
||||
echo "Install bl31.bin.unsigned"
|
||||
install -m 0644 ${BUILD_DIR}/bl31.bin \
|
||||
${D}/firmware/bl31.bin.unsigned
|
||||
fi
|
||||
}
|
||||
@@ -1,67 +1,4 @@
|
||||
PV:k3 = "2.8+git${SRCPV}"
|
||||
SRCREV_tfa:k3 = "2fcd408bb3a6756767a43c073c597cef06e7f2d5"
|
||||
SRC_URI:k3 = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;protocol=https;name=tfa;branch=master"
|
||||
COMPATIBLE_MACHINE:k3 = "k3"
|
||||
TFA_BUILD_TARGET:k3 = "all"
|
||||
TFA_INSTALL_TARGET:k3 = "bl31"
|
||||
TFA_SPD:k3 = "opteed"
|
||||
TFA_TI = ""
|
||||
TFA_TI:k3 = "trusted-firmware-a-ti.inc"
|
||||
|
||||
# Use TI SECDEV for signing
|
||||
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 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"
|
||||
install -m 0644 ${BUILD_DIR}/bl31.bin.unsigned \
|
||||
${D}/firmware/bl31.bin.unsigned
|
||||
else
|
||||
echo "Install bl31.bin.unsigned"
|
||||
install -m 0644 ${BUILD_DIR}/bl31.bin \
|
||||
${D}/firmware/bl31.bin.unsigned
|
||||
fi
|
||||
}
|
||||
require ${TFA_TI}
|
||||
|
||||
Reference in New Issue
Block a user