summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorHolger Schurig <holgerschurig@gmail.com>2014-07-22 09:57:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-22 21:29:57 +0200
commitb3265685f7e4009aa4e3fbe788d80cd6d4e0e227 (patch)
tree3a93df817c3bd519d024888008c73ff184590c97 /arch
parent3549cc582cd1ab2151f4315f64097aa83444f9db (diff)
downloadbarebox-b3265685f7e4009aa4e3fbe788d80cd6d4e0e227.tar.gz
barebox-b3265685f7e4009aa4e3fbe788d80cd6d4e0e227.tar.xz
sandbox: allow "make ARCH=sandbox allyesconfig"
Compiling the tree with allyesconfig is helpful because different compilers (gcc, clang) or static checkers (e.g. clang's scan-build) can then process and check more code. This patch introduces two new configuration symbols that Kconfig files can depend on. That way, code that is only working where a cache or DMA implementation exists can be opted out. Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/Kconfig2
-rw-r--r--arch/nios2/Kconfig1
-rw-r--r--arch/openrisc/Kconfig1
-rw-r--r--arch/ppc/Kconfig1
4 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 8465d4a7f7..3af01970e3 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -2,6 +2,8 @@ config ARM
bool
select HAS_KALLSYMS
select HAS_MODULES
+ select HAS_DMA
+ select HAS_CACHE
select HAVE_CONFIGURABLE_TEXT_BASE
select HAVE_PBL_IMAGE
select HAVE_IMAGE_COMPRESSION
diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig
index 70a7562709..199540ba74 100644
--- a/arch/nios2/Kconfig
+++ b/arch/nios2/Kconfig
@@ -2,6 +2,7 @@ config NIOS2
bool
select HAS_KALLSYMS
select HAS_MODULES
+ select HAS_CACHE
select HAVE_CONFIGURABLE_MEMORY_LAYOUT
select GENERIC_FIND_NEXT_BIT
default y
diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig
index e21010bd60..23c6a71f3a 100644
--- a/arch/openrisc/Kconfig
+++ b/arch/openrisc/Kconfig
@@ -1,5 +1,6 @@
config OPENRISC
bool
+ select HAS_CACHE
select HAVE_CONFIGURABLE_MEMORY_LAYOUT
select HAVE_DEFAULT_ENVIRONMENT_NEW
select GENERIC_FIND_NEXT_BIT
diff --git a/arch/ppc/Kconfig b/arch/ppc/Kconfig
index 7ebfa863b4..97e6c00689 100644
--- a/arch/ppc/Kconfig
+++ b/arch/ppc/Kconfig
@@ -3,6 +3,7 @@ config PPC
select HAVE_CONFIGURABLE_TEXT_BASE
select HAS_KALLSYMS
select HAS_MODULES
+ select HAS_CACHE
select GENERIC_FIND_NEXT_BIT
select OFTREE
default y