MLK-20664-2 imx8/imx8m: Disable the SPL RAW image support
authorYe Li <ye.li@nxp.com>
Thu, 27 Dec 2018 05:51:51 +0000 (21:51 -0800)
committerYe Li <ye.li@nxp.com>
Wed, 28 Apr 2021 20:37:50 +0000 (13:37 -0700)
The RAW image support must be disabled, otherwise a RAW image can be used
to bypass FIT image.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit ca7ebfcf0737699d5f62f97be4b0015c88108ae7)
(cherry picked from commit 9e9524c86a08d5b16bb94c1a30eda378536c4860)
(cherry picked from commit 1759ef0b52f972cff6c2c23014c534c9c8d0d55f)

common/spl/Kconfig

index 774541c..6c8bbcb 100644 (file)
@@ -195,7 +195,7 @@ config SPL_BOOTCOUNT_LIMIT
 
 config SPL_RAW_IMAGE_SUPPORT
        bool "Support SPL loading and booting of RAW images"
-       default n if (ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT))
+       default n if ((ARCH_MX6 && (SPL_MMC_SUPPORT || SPL_SATA_SUPPORT)) || ARCH_IMX8 || ARCH_IMX8M)
        default y if !TI_SECURE_DEVICE
        help
          SPL will support loading and booting a RAW image when this option