trustfence-sign-artifact: fix AHAB-containerizing command for ccimx91
The ccmx91 uses the same AHAB-containerizing command as the ccimx93, so fix the code to remove the hardcoding check for the ccimx93. Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
437899bb95
commit
3d2718abb7
|
|
@ -128,10 +128,8 @@ eval "CONFIG_CSF_SIZE=\"\${${PLATFORM}_csf_size}\""
|
||||||
# Rootfs is loaded to $initrd_addr, just like the ramdisk
|
# Rootfs is loaded to $initrd_addr, just like the ramdisk
|
||||||
[ "${ARTIFACT_ROOTFS}" = "y" ] && CONFIG_RAM_START="${CONFIG_RAMDISK_LOADADDR}"
|
[ "${ARTIFACT_ROOTFS}" = "y" ] && CONFIG_RAM_START="${CONFIG_RAMDISK_LOADADDR}"
|
||||||
|
|
||||||
# For ccimx91 do not require image type (assume FIT image)
|
# For ccimx9 do not require image type (assume FIT image)
|
||||||
[ "${PLATFORM}" = "ccimx91" ] && CONFIG_RAM_START="${CONFIG_FIT_LOADADDR}"
|
echo "${PLATFORM}" | grep -qs "ccimx9" && CONFIG_RAM_START="${CONFIG_FIT_LOADADDR}"
|
||||||
# For ccimx93 do not require image type (assume FIT image)
|
|
||||||
[ "${PLATFORM}" = "ccimx93" ] && CONFIG_RAM_START="${CONFIG_FIT_LOADADDR}"
|
|
||||||
|
|
||||||
if [ -z "${CONFIG_RAM_START}" ]; then
|
if [ -z "${CONFIG_RAM_START}" ]; then
|
||||||
echo "Specify the type of image to process (-b, -i, -d, -l, -r, or -o)"
|
echo "Specify the type of image to process (-b, -i, -d, -l, -r, or -o)"
|
||||||
|
|
@ -318,8 +316,8 @@ elif [ "${CONFIG_SIGN_MODE}" = "AHAB" ]; then
|
||||||
KERNEL_SIG_BLOCK_OFFSET="0x90"
|
KERNEL_SIG_BLOCK_OFFSET="0x90"
|
||||||
|
|
||||||
# Prepare the image container
|
# Prepare the image container
|
||||||
if [ "${PLATFORM}" = "ccimx93" ]; then
|
if echo "${PLATFORM}" | grep -qs "ccimx9"; then
|
||||||
# Only FIT image supported for CC93
|
# Only FIT image supported for CC9
|
||||||
mkimage_imx8 -soc IMX9 -c -ap ${UIMAGE_PATH} a55 ${CONFIG_FIT_LOADADDR} -out temp-mkimg
|
mkimage_imx8 -soc IMX9 -c -ap ${UIMAGE_PATH} a55 ${CONFIG_FIT_LOADADDR} -out temp-mkimg
|
||||||
else
|
else
|
||||||
mkimage_imx8 -soc "QX" -rev "B0" -c -ap ${UIMAGE_PATH} a35 ${CONFIG_RAM_START} -out temp-mkimg
|
mkimage_imx8 -soc "QX" -rev "B0" -c -ap ${UIMAGE_PATH} a35 ${CONFIG_RAM_START} -out temp-mkimg
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue