summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-01-18 02:07:33 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-23 09:43:28 +0100
commit463229490e5624f55a968d9321334f441a981ef2 (patch)
treeb42df7c0d72a08efcaca576b2ab7c542c6f300db /common/Kconfig
parent4bcf52aa6635cac1b88c513f90f732595979cf94 (diff)
downloadbarebox-463229490e5624f55a968d9321334f441a981ef2.tar.gz
barebox-463229490e5624f55a968d9321334f441a981ef2.tar.xz
introduce barebox_bare_init_size to known the bare_init size and check it
this allow to check we do not exceed the size of the SRAM as example introduce BAREBOX_MAX_BARE_INIT_SIZE the maximum size of bare_init this will allow your bare_init will fit in SRAM as example ARCH can overwrite it via ARCH_BAREBOX_MAX_BARE_INIT_SIZE Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index 8089061421..d1db27dcbb 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -111,6 +111,15 @@ config BAREBOX_MAX_IMAGE_SIZE
help
Define the maximum size of barebox
+config BAREBOX_MAX_BARE_INIT_SIZE
+ prompt "Maximum bare_init size"
+ hex
+ default 0xffffffff
+ help
+ Define the maximum size of bare_init
+ this will allow your bare_init will fit in SRAM as example
+ ARCH can overwrite it via ARCH_BAREBOX_MAX_BARE_INIT_SIZE
+
config HAVE_CONFIGURABLE_MEMORY_LAYOUT
bool