mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-04-20 19:53:43 +00:00
hs: Deploy the unsigned versions of bl31 and bl32
In addition to releasing the signed versions of the bl31.bin and bl32.bin files, also release the unsigned original versions. Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
@@ -17,3 +17,15 @@ do_compile:append:k3() {
|
||||
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_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
|
||||
}
|
||||
|
||||
@@ -9,13 +9,6 @@ EXTRA_OEMAKE:append:k3 = "${@ ' CFG_CONSOLE_UART='+ d.getVar('OPTEE_K3_USART') i
|
||||
EXTRA_OEMAKE:append:am62xx = " CFG_TEE_CORE_LOG_LEVEL=1"
|
||||
EXTRA_OEMAKE:append:am62axx = " CFG_TEE_CORE_LOG_LEVEL=1"
|
||||
|
||||
do_compile:append:k3() {
|
||||
( cd ${B}/core/; \
|
||||
cp tee-pager_v2.bin ${B}/bl32.bin; \
|
||||
cp tee.elf ${B}/bl32.elf; \
|
||||
)
|
||||
}
|
||||
|
||||
# Signing procedure for legacy HS devices
|
||||
optee_sign_legacyhs() {
|
||||
( cd ${B}/core/; \
|
||||
@@ -46,12 +39,14 @@ do_compile:append:dra7xx() {
|
||||
# Signing procedure for K3 devices
|
||||
do_compile:append:k3() {
|
||||
${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${B}/core/tee-pager_v2.bin ${B}/bl32.bin
|
||||
cp ${B}/core/tee-pager_v2.bin ${B}/bl32.bin.unsigned
|
||||
cp ${B}/core/tee.elf ${B}/bl32.elf
|
||||
}
|
||||
|
||||
do_install:append:ti-soc() {
|
||||
install -m 644 ${B}/*.optee ${D}${nonarch_base_libdir}/firmware/ || true
|
||||
install -m 644 ${B}/bl32.bin ${D}${nonarch_base_libdir}/firmware/ || true
|
||||
install -m 644 ${B}/bl32.bin.unsigned ${D}${nonarch_base_libdir}/firmware/ || true
|
||||
install -m 644 ${B}/bl32.elf ${D}${nonarch_base_libdir}/firmware/ || true
|
||||
}
|
||||
|
||||
@@ -72,6 +67,7 @@ do_deploy:append:dra7xx() {
|
||||
|
||||
do_deploy:append:k3() {
|
||||
ln -sf optee/bl32.bin ${DEPLOYDIR}/
|
||||
ln -sf optee/bl32.bin.unsigned ${DEPLOYDIR}/
|
||||
ln -sf optee/bl32.elf ${DEPLOYDIR}/
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user