summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-12-19 15:49:29 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-27 14:24:39 +0100
commitf331ac288f93d52bdcee4330f20b8e79ccad5eb1 (patch)
tree5a21397fc972424e635dd3298ee329eaa182cb60 /common/Kconfig
parent00c7c8ecab497198b31a1447d6fc0c951d198054 (diff)
downloadbarebox-f331ac288f93d52bdcee4330f20b8e79ccad5eb1.tar.gz
barebox-f331ac288f93d52bdcee4330f20b8e79ccad5eb1.tar.xz
introduce compile time loglevel
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 b60b78bb89..30d61071a9 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -637,6 +637,22 @@ endmenu
menu "Debugging"
+config COMPILE_LOGLEVEL
+ int "loglevel"
+ default 6
+ help
+ This defines the maximum loglevel compiled into the binary. Less important
+ messages will be compiled away resulting in a smaller binary.
+
+ 0 system is unusable (emerg)
+ 1 action must be taken immediately (alert)
+ 2 critical conditions (crit)
+ 3 error conditions (err)
+ 4 warning conditions (warn)
+ 5 normal but significant condition (notice)
+ 6 informational (info)
+ 7 debug-level messages (debug)
+
config DEBUG_INFO
bool
prompt "enable debug symbols"