config/global/logging.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jul 25 14:08:03 2008 +0000 (2008-07-25)
changeset 722 37968404e9b9
parent 445 17aa08b441f2
child 753 53a577cbd9d4
permissions -rw-r--r--
When dumping the DokuWiki table of samples, don't leave the kernel headers version empty if using a custom headers set., and say so.

/trunk/scripts/showSamples.sh | 6 5 1 0 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
     1 # Options specific to logging
     2 
     3 comment "Logging"
     4 
     5 choice
     6     bool
     7     prompt "Maximum log level to see:"
     8     default LOG_INFO if !DEBUG_CT
     9     default LOG_DEBUG if DEBUG_CT
    10 
    11 config LOG_ERROR
    12     bool
    13     prompt "ERROR"
    14     help
    15       The build will be silent.
    16       Only if there is an error will you see a message.
    17 
    18 config LOG_WARN
    19     bool
    20     prompt "WARN"
    21     help
    22       The same as above, plus warnings.
    23 
    24 config LOG_INFO
    25     bool
    26     prompt "INFO"
    27     help
    28       The same as above, plus informational messages (main steps).
    29 
    30 config LOG_EXTRA
    31     bool
    32     prompt "EXTRA"
    33     help
    34       The same as above, plus extra messages (sub-steps).
    35 
    36 config LOG_DEBUG
    37     bool
    38     prompt "DEBUG"
    39     help
    40       The same as above, plus lots of crosstool-NG debug information.
    41 
    42 config LOG_ALL
    43     bool
    44     prompt "ALL"
    45     help
    46       The same as above, plus all components build messages (very noisy!).
    47 
    48 endchoice
    49 
    50 config LOG_LEVEL_MAX
    51     string
    52     default "ERROR"   if LOG_ERROR
    53     default "WARN"    if LOG_WARN
    54     default "INFO"    if LOG_INFO
    55     default "EXTRA"   if LOG_EXTRA
    56     default "DEBUG"   if LOG_DEBUG
    57     default "ALL"     if LOG_ALL
    58 
    59 config LOG_SEE_TOOLS_WARN
    60     bool
    61     prompt "Warnings from the tools' builds"
    62     default n
    63     depends on ! LOG_ERROR
    64     help
    65       Treat warnings from the different tools as crosstool-NG warnings.
    66       If you say 'y' here, then those warnings will be prefixed with
    67       '[WARN ]' instead of the default '[ALL  ]'.
    68 
    69       You can safely say 'n' here. Those warnings will anyway be
    70       recorded in the log file (provided you configured one).
    71 
    72       Tools error will always be logged as crosstool-NG errors.
    73 
    74 config LOG_PROGRESS_BAR
    75     bool
    76     prompt "Progress bar"
    77     default y
    78     depends on ! LOG_ALL
    79     help
    80       If you say 'y' here, you'll be able to see the elapsed time.
    81       
    82       As a bonus, you'll also get a rotating bar (/-\|) showing you
    83       that the build is not stalled (the bar rotates 1/4 every 10 lines
    84       of components build log).
    85 
    86       Note that the elapsed time can stall for a little while if a
    87       component has long commands, as the elapsed time is only updated
    88       each line.
    89 
    90 config LOG_TO_FILE
    91     bool
    92     prompt "Log to a file"
    93     default y
    94     help
    95       Save *full* logs to a file. Even log levels you didn't specify above
    96       will be available in this file. The log file will be named build.log
    97       and stored in the toolchain prefix dir (set above).
    98 
    99       As a bonus, there is a script in tools/extractConfig.sh that is able
   100       to extract the configuration of crosstool-NG from the log file.
   101 
   102       Definitely, say Y.
   103 
   104 config LOG_FILE_COMPRESS
   105     bool
   106     prompt "Compress the log file"
   107     default n
   108     depends on LOG_TO_FILE
   109     help
   110       Compress the log file once the toolchain is successfully built.