config/global.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Mar 07 19:00:10 2007 +0000 (2007-03-07)
changeset 14 11726b835286
parent 1 eeea35fbf182
child 31 97e44d892c92
permissions -rw-r--r--
Add an option to remove the generated documentation.
(After an idea from Enrico Weigelt <weigelt@metux.de>).
     1 # Overall toolchain configuration: paths, jobs, etc...
     2 
     3 menu "Paths and misc options"
     4 
     5 config PARALLEL_JOBS
     6     int
     7     prompt "Number of parallel jobs"
     8     default 1
     9     help
    10       Number of jobs make will be allowed to run concurently.
    11       Set this higher than the number of processors you have, but not too high.
    12       A good rule of thumb is twice the number of processors you have.
    13       
    14       Enter 1 (or 0) to have only one job at a time.
    15 
    16 config LOAD
    17     int
    18     prompt "Maximum allowed load"
    19     default 0
    20     help
    21       Specifies that no new jobs should be started if there are others jobs
    22       running and the load average is at least this value.
    23       
    24       Makes sense on SMP machines only.
    25       
    26       Enter 0 to have no limit on the load average.
    27       
    28       Note: only the integer part of the load is allowed here (you can't enter
    29             0.75 for example).
    30 
    31 config NICE
    32     int
    33     prompt "Nice level"
    34     default 0
    35     range 0 19
    36     help
    37       Renices the build process up.
    38 
    39 config USE_PIPES
    40     bool
    41     prompt "Use -pipe"
    42     default y
    43     help
    44       Use gcc's option -pipe to use pipes rather than temp files when building
    45       the toolchain.
    46 
    47 comment "Paths"
    48 
    49 config TARBALLS_DIR
    50     string
    51     prompt "Tarballs directory"
    52     default "`pwd`/tarballs"
    53     help
    54       This is the directory into which tarballs are going to be stored once
    55       they are downloaded (or otherwise retrieved).
    56 
    57 config SRC_DIR
    58     string
    59     prompt "Extract directory"
    60     default "`pwd`/${CT_TARGET}/src"
    61     help
    62       This is the directory into which tarballs will be extracted.
    63       
    64       If you will build multiple toolchains, you should arrange to have one
    65       SRC_DIR for each toolchain, as different targets may require different
    66       patches to be applied.
    67 
    68 config BUILD_DIR
    69     string
    70     prompt "Build directory"
    71     default "`pwd`/${CT_TARGET}/gcc-${CT_CC_VERSION}-${CT_LIBC}-${CT_LIBC_VERSION}"
    72     help
    73       This is the directory into which builds will occur.
    74       
    75       Once again, arrange for one build directory for each toolchain you build,
    76       to avoid collision.
    77 
    78 config PREFIX_DIR
    79     string
    80     prompt "Prefix directory"
    81     default "${HOME}/${CT_TARGET}"
    82     help
    83       This is the path the toolchain will run from.
    84 
    85 config INSTALL_DIR
    86     string
    87 #    prompt "Install directory"
    88     default "${CT_PREFIX_DIR}"
    89 #    help
    90 #      This is the path the target will be installed into.
    91 #      
    92 #      Normally, you would set this to ${CT_PREFIX_DIR}, but if for some reasons
    93 #      you can't write there, you can install somewhere else and have a third
    94 #      person do the install for you.
    95 #      The reason you might also want to install elsewhere is if you are going
    96 #      to package your shinny new toolchain for distribution.
    97 
    98 config CUSTOM_PATCH
    99     bool
   100     prompt "Use custom patch directory"
   101     default n
   102     help
   103       If you have custom patches that you want to be applied, say 'Y' here and
   104       enter the path directory below.
   105       
   106       Note that you must ensure that the patch directory is arranged the same
   107       way the official directory is.
   108 
   109 config CUSTOM_PATCH_ONLY
   110     bool
   111     prompt "Only use custom patches"
   112     default n
   113     depends on CUSTOM_PATCH
   114     help
   115       Don't apply patches coming with CT-NG, only those patches available in
   116       the directory below.
   117       
   118       If you say 'N' here, then the patches provided with CT-NG will be applied
   119       first, and then your patches.
   120 
   121 config CUSTOM_PATCH_DIR
   122     string
   123     prompt "Custom patch directory"
   124     default ""
   125     depends on CUSTOM_PATCH
   126     help
   127       Enter the custom patch directory here.
   128 
   129 config REMOVE_DOCS
   130     bool
   131     prompt "Remove documentation"
   132     default n
   133     help
   134       Remove the installed documentation (man and info pages).
   135       Gains around 8MiB for a uClibc-based, C and C++ compiler.
   136 
   137 comment "Downloading and extracting"
   138 
   139 config NO_DOWNLOAD
   140     bool
   141     prompt "Avoid downloads"
   142     default n
   143     help
   144       Avoid downloading anything. Bail out if a tarball is missing.
   145 
   146 config ONLY_DOWNLOAD
   147     bool
   148     prompt "Only download tarballs"
   149     default n
   150     depends on ! NO_DOWNLOAD
   151     help
   152       Only download the tarballs. Exit once it done.
   153       
   154       Usefull to pre-retrieve the tarballs before going off-line.
   155 
   156 config FORCE_DOWNLOAD
   157     bool
   158     prompt "Force downloads"
   159     default n
   160     depends on ! NO_DOWNLOAD
   161     help
   162       Force downloading tarballs, even if one already exists.
   163       Usefull if you suspect a tarball to be damaged.
   164 
   165 config FORCE_EXTRACT
   166     bool
   167     prompt "Force extractions"
   168     depends on ! ONLY_DOWNLOAD
   169     default n
   170     help
   171       Force extraction of already exctracted tarballs.
   172       
   173       Usefull if you suspect a previous extract did not complete (eg. broken
   174       tarball), or you added a new set of patches for this component.
   175 
   176 comment "Logging"
   177 
   178 choice
   179     bool
   180     prompt "Maximum log level to see:"
   181     default LOG_INFO
   182 
   183 config LOG_ERROR
   184     bool
   185     prompt "ERROR"
   186     help
   187       The build will be silent.
   188       Only if there is an error will you see a mesage.
   189 
   190 config LOG_WARN
   191     bool
   192     prompt "WARN"
   193     help
   194       The same as above, plus warnings.
   195 
   196 config LOG_INFO
   197     bool
   198     prompt "INFO"
   199     help
   200       The same as above, plus informational messages (main steps).
   201 
   202 config LOG_EXTRA
   203     bool
   204     prompt "EXTRA"
   205     help
   206       The same as above, plus extra messages (sub-steps).
   207 
   208 config LOG_DEBUG
   209     bool
   210     prompt "DEBUG"
   211     help
   212       The same as above, plus lots of debug information, of which each
   213       component's build messages (very noisy!).
   214 
   215 endchoice
   216 
   217 config LOG_LEVEL_MAX
   218     string
   219     default "ERROR"   if LOG_ERROR
   220     default "WARN"    if LOG_WARN
   221     default "INFO"    if LOG_INFO
   222     default "EXTRA"   if LOG_EXTRA
   223     default "DEBUG"   if LOG_DEBUG
   224 
   225 config LOG_PROGRESS_BAR
   226     bool
   227     prompt "Progress bar"
   228     default n
   229     depends on ! LOG_DEBUG
   230     help
   231       This option will print a "rotating bar" (/-\|) below the last log line
   232       to show work is not stalled.
   233       
   234       Available when not in DEBUG log level.
   235 
   236 config LOG_USE_COLORS
   237     bool
   238     prompt "Use colors for logging to console"
   239     default n
   240     help
   241       Use colors to highlight important messages.
   242       ERROR: bright red
   243       WARN : bright yellow
   244       INFO : bright green
   245       EXTRA: dim green
   246       DEBUG: dim white
   247 
   248 config LOG_TO_FILE
   249     bool
   250     prompt "Log to a file"
   251     default y
   252     help
   253       Save *full* logs to a file. Even log levels you didn't specify above
   254       will be available in this file.
   255 
   256 config LOG_FILE
   257     string
   258     prompt "Log file"
   259     default "${CT_PREFIX_DIR}/${CT_TARGET}.log"
   260     depends on LOG_TO_FILE
   261     help
   262       File name into which to put logs.
   263 
   264 endmenu