From: Arnd Bergmann Date: Thu, 3 Dec 2020 23:08:14 +0000 (+0100) Subject: memory: ti-emif-sram: only build for ARMv7 X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~491^2~403 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=20d79c2a54155dbcc338f799788a305a9d190976;p=linux.git memory: ti-emif-sram: only build for ARMv7 [ Upstream commit d77d22d701b0471584abe1871570bb43deb6e3c4 ] The driver can be compile-tested on all ARM machines, but causes a failure when built for ARMv7-M: arm-linux-gnueabi-ld: error: drivers/memory/ti-emif-sram-pm.o: conflicting architecture profiles A/M Limit the target machines to configurations that have ARMv7 enabled. Fixes: ea0c0ad6b6eb ("memory: Enable compile testing for most of the drivers") Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20201203230832.1481767-1-arnd@kernel.org Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sasha Levin --- diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig index 00e013b14703..cc2c83e1accf 100644 --- a/drivers/memory/Kconfig +++ b/drivers/memory/Kconfig @@ -128,7 +128,7 @@ config OMAP_GPMC_DEBUG config TI_EMIF_SRAM tristate "Texas Instruments EMIF SRAM driver" - depends on SOC_AM33XX || SOC_AM43XX || (ARM && COMPILE_TEST) + depends on SOC_AM33XX || SOC_AM43XX || (ARM && CPU_V7 && COMPILE_TEST) depends on SRAM help This driver is for the EMIF module available on Texas Instruments