diff options
author | Ye Li <ye.li@nxp.com> | 2022-04-19 14:43:24 +0530 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-04-21 15:18:25 +0200 |
commit | 92aff90b1e24a1b5cf39aa1c65e28081421c39fd (patch) | |
tree | 22dfcb2a8f632ac494b9e2704f95fae490166b39 /arch | |
parent | 2c16bf2d14d7fbacafb5473f49487ba7f219e40c (diff) | |
download | u-boot-92aff90b1e24a1b5cf39aa1c65e28081421c39fd.tar.gz u-boot-92aff90b1e24a1b5cf39aa1c65e28081421c39fd.tar.bz2 u-boot-92aff90b1e24a1b5cf39aa1c65e28081421c39fd.zip |
imx: Update FSL_MFGPROT config for iMX8M
Update the Kconfig and Makefile to allow build for iMX8M and
restrict the build only in u-boot.
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/Kconfig | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/Makefile | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 9aa1d84336..ad0fb36502 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -137,7 +137,7 @@ config CMD_NANDBCB config FSL_MFGPROT bool "Support the 'mfgprot' command" - depends on IMX_HAB && ARCH_MX7 + depends on IMX_HAB && (ARCH_MX7 || ARCH_IMX8M) help This option enables the manufacturing protection command which can be used has a protection feature for Manufacturing diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 77e72702bb..aa0b6447f1 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -38,8 +38,12 @@ ifeq ($(SOC),$(filter $(SOC),mx7)) obj-y += cpu.o obj-$(CONFIG_SYS_I2C_MXC) += i2c-mxv7.o obj-$(CONFIG_ENV_IS_IN_MMC) += mmc_env.o +endif +ifeq ($(SOC),$(filter $(SOC),mx7 imx8m)) +ifneq ($(CONFIG_SPL_BUILD),y) obj-$(CONFIG_FSL_MFGPROT) += cmd_mfgprot.o endif +endif ifeq ($(SOC),$(filter $(SOC),mx5 mx6 mx7)) obj-$(CONFIG_IMX_VIDEO_SKIP) += video.o endif |