memory: ti-emif-sram: only build for ARMv7
authorArnd Bergmann <arnd@arndb.de>
Thu, 3 Dec 2020 23:08:14 +0000 (00:08 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Sat, 5 Dec 2020 13:57:17 +0000 (14:57 +0100)
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 <arnd@arndb.de>
Link: https://lore.kernel.org/r/20201203230832.1481767-1-arnd@kernel.org
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/memory/Kconfig

index eebd2ddcd86071f9ef95eb685a3543a633c5ef43..3ea6913df176f4ac1b01e924e1fea693ef276615 100644 (file)
@@ -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