From: computersforpeace@gmail.com (Brian Norris)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: at91: force CPU selection
Date: Mon, 9 Mar 2015 23:59:58 -0700 [thread overview]
Message-ID: <1425970798-14015-1-git-send-email-computersforpeace@gmail.com> (raw)
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
WARNING: multiple messages have this Message-ID (diff)
From: Brian Norris <computersforpeace@gmail.com>
To: Andrew Victor <linux@maxim.org.za>
Cc: Arnd Bergmann <arnd@arndb.de>,
Brian Norris <computersforpeace@gmail.com>,
Nicolas Ferre <nicolas.ferre@atmel.com>,
Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: [PATCH] ARM: at91: force CPU selection
Date: Mon, 9 Mar 2015 23:59:58 -0700 [thread overview]
Message-ID: <1425970798-14015-1-git-send-email-computersforpeace@gmail.com> (raw)
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
next reply other threads:[~2015-03-10 6:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-10 6:59 Brian Norris [this message]
2015-03-10 6:59 ` [PATCH] ARM: at91: force CPU selection Brian Norris
2015-03-10 9:02 ` Arnd Bergmann
2015-03-10 9:02 ` Arnd Bergmann
2015-03-10 9:42 ` Alexandre Belloni
2015-03-10 9:42 ` Alexandre Belloni
2015-03-10 13:42 ` Arnd Bergmann
2015-03-10 13:42 ` Arnd Bergmann
2015-03-13 18:32 ` Alexandre Belloni
2015-03-13 18:32 ` Alexandre Belloni
2015-03-13 19:50 ` Arnd Bergmann
2015-03-13 19:50 ` Arnd Bergmann
2015-03-13 20:30 ` Alexandre Belloni
2015-03-13 20:30 ` Alexandre Belloni
2015-03-10 20:02 ` Brian Norris
2015-03-10 20:02 ` Brian Norris
2015-03-10 21:13 ` Alexandre Belloni
2015-03-10 21:13 ` Alexandre Belloni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1425970798-14015-1-git-send-email-computersforpeace@gmail.com \
--to=computersforpeace@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.