summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
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 /common/Kconfig
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 'common/Kconfig')
-rw-r--r--common/Kconfig16
1 files changed, 16 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index eeb3faf35e..6aa0aac991 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -25,6 +25,22 @@ config ENV_HANDLING
select CRC32
bool
+config HAS_CACHE
+ bool
+ help
+ This allows you do run "make ARCH=sandbox allyesconfig".
+
+ Drivers that depend on a cache implementation can depend on this
+ config, so that you don't get a compilation error.
+
+config HAS_DMA
+ bool
+ help
+ This allows you do run "make ARCH=sandbox allyesconfig".
+
+ Drivers that depend on a DMA implementation can depend on this
+ config, so that you don't get a compilation error.
+
config GENERIC_GPIO
bool