Skip to contentSkip to conversation

memory: ti-emif-sram: only build for ARMv7

PATCH Applied Arnd Bergmann 2 participants 2 messages Dec 3, 2020 – Dec 5, 2020 Memory controller drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 memory: ti-emif-sram: only build for ARMv7

From: Arnd Bergmann <[email protected]>

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")
---
 drivers/memory/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/memory/Kconfig +1 -1
index eebd2ddcd860..3ea6913df176 100644
@@ -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
Signature · 1 line
2.27.0
maintainer Applied
#1 lore raw
Quoted 6 lines · Arnd Bergmann

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.

Applied, thanks!

[1/1] memory: ti-emif-sram: only build for ARMv7

      commit: d77d22d701b0471584abe1871570bb43deb6e3c4

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>