imx-boot: add encryption support to the build images
https://jira.digi.com/browse/DEL-7175 Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
6a6ff5080b
commit
91fcbffe99
|
|
@ -70,8 +70,6 @@ VIRTUAL-RUNTIME_initscripts ?= "initscripts"
|
|||
|
||||
# TrustFence
|
||||
TRUSTFENCE_SIGN_MODE = "AHAB"
|
||||
# TODO: Encryption not yet supported
|
||||
TRUSTFENCE_DEK_PATH = "0"
|
||||
TRUSTFENCE_ENCRYPT_ENVIRONMENT = "0"
|
||||
|
||||
# Adding 'wayland' along with 'x11' enables the xwayland backend
|
||||
|
|
|
|||
|
|
@ -221,7 +221,12 @@ do_deploy_append () {
|
|||
for target in ${IMXBOOT_TARGETS}; do
|
||||
# Link to current "target" mkimage log
|
||||
ln -sf mkimage-${target}.log mkimage.log
|
||||
if [ "${TRUSTFENCE_DEK_PATH}" != "0" ]; then
|
||||
export ENABLE_ENCRYPTION=y
|
||||
trustfence-sign-uboot.sh ${DEPLOYDIR}/${UBOOT_PREFIX}-${MACHINE}-${rev}-${ramc}.bin-${target} ${DEPLOYDIR}/${UBOOT_PREFIX}-encrypted-${MACHINE}-${rev}-${ramc}.bin-${target}
|
||||
else
|
||||
trustfence-sign-uboot.sh ${DEPLOYDIR}/${UBOOT_PREFIX}-${MACHINE}-${rev}-${ramc}.bin-${target} ${DEPLOYDIR}/${UBOOT_PREFIX}-signed-${MACHINE}-${rev}-${ramc}.bin-${target}
|
||||
fi
|
||||
done
|
||||
done
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in New Issue