linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: at91: force CPU selection
@ 2015-03-10  6:59 Brian Norris
  2015-03-10  9:02 ` Arnd Bergmann
  0 siblings, 1 reply; 9+ messages in thread
From: Brian Norris @ 2015-03-10  6:59 UTC (permalink / raw)
  To: Andrew Victor
  Cc: Arnd Bergmann, Brian Norris, Nicolas Ferre,
	Jean-Christophe Plagniol-Villard, linux-arm-kernel, linux-kernel

The mach-at91 build does not force the user to make a CPU selection.
This can yield a build failure when SOC_SAM_V7 is used, but neither
SOC_SAMA5D4 nor SOC_SAMA5D3 are defined:

    arch/arm/include/asm/glue-pf.h:54:2: error: #error Unknown prefetch abort handler type
     #error Unknown prefetch abort handler type
      ^
    make[2]: *** [arch/arm/kernel/asm-offsets.s] Error 1

The forced default selection is completely arbitrary.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
---
 arch/arm/mach-at91/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index c74a44324e5b..afbf03e96746 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -114,6 +114,12 @@ config SOC_AT91SAM9
 	    AT91SAM9XE
 endif # SOC_SAM_V4_V5
 
+config MACH_AT91_AUTO
+	def_bool y
+	depends on !SOC_AT91SAM9 && !SOC_SAMA5D4
+	select SOC_SAMA5D3 if SOC_SAM_V7
+	select SOC_AT91RM9200 if SOC_SAM_V4_V5
+
 comment "AT91 Feature Selections"
 
 config AT91_SLOW_CLOCK
-- 
2.3.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-03-13 20:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-10  6:59 [PATCH] ARM: at91: force CPU selection Brian Norris
2015-03-10  9:02 ` Arnd Bergmann
2015-03-10  9:42   ` Alexandre Belloni
2015-03-10 13:42     ` Arnd Bergmann
2015-03-13 18:32       ` Alexandre Belloni
2015-03-13 19:50         ` Arnd Bergmann
2015-03-13 20:30           ` Alexandre Belloni
2015-03-10 20:02   ` Brian Norris
2015-03-10 21:13     ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).