summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2015-09-29 23:22:49 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2015-09-29 23:22:49 (GMT)
commit4f266e1a8c78cec2c425b17784576db56125bbbd (patch)
treee28732437ddc94ed35056c145807a46addafd34f /config
parent6baef82c26f0586ce53373760ac550b0d2536626 (diff)
configure: Add automated build option
This commit introduces a configure time option to let the build know that this is going to be an automated build. This forces the build to disable the progress bar, log tool warnings, and force the log level to debug. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'config')
-rw-r--r--config/global/logging.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/config/global/logging.in b/config/global/logging.in
index 0c77e88..9f41db7 100644
--- a/config/global/logging.in
+++ b/config/global/logging.in
@@ -11,6 +11,7 @@ choice
config LOG_ERROR
bool
prompt "ERROR"
+ depends on ! CONFIGURE_has_automated
help
The build will be silent.
Only if there is an error will you see a message.
@@ -18,24 +19,28 @@ config LOG_ERROR
config LOG_WARN
bool
prompt "WARN"
+ depends on ! CONFIGURE_has_automated
help
The same as above, plus warnings.
config LOG_INFO
bool
prompt "INFO"
+ depends on ! CONFIGURE_has_automated
help
The same as above, plus informational messages (main steps).
config LOG_EXTRA
bool
prompt "EXTRA"
+ depends on ! CONFIGURE_has_automated
help
The same as above, plus extra messages (sub-steps).
config LOG_ALL
bool
prompt "ALL"
+ depends on ! CONFIGURE_has_automated
help
The same as above, plus all components build messages (very noisy!).
@@ -74,7 +79,7 @@ config LOG_PROGRESS_BAR
bool
prompt "Progress bar"
default y
- depends on ! LOG_ALL && ! LOG_DEBUG
+ depends on ! LOG_ALL && ! LOG_DEBUG && ! AUTOMATED_BUILD
help
If you say 'y' here, you'll be able to see the elapsed time.
@@ -104,3 +109,10 @@ config LOG_FILE_COMPRESS
depends on LOG_TO_FILE
help
Compress the log file once the toolchain is successfully built.
+
+config AUTOMATED_BUILD
+ bool
+ default y
+ depends on CONFIGURE_has_automated
+ select LOG_DEBUG
+ select LOG_SEE_TOOLS_WARN