config/global.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
child 14 11726b835286
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     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 comment "Downloading and extracting"
   130 
   131 config NO_DOWNLOAD
   132     bool
   133     prompt "Avoid downloads"
   134     default n
   135     help
   136       Avoid downloading anything. Bail out if a tarball is missing.
   137 
   138 config ONLY_DOWNLOAD
   139     bool
   140     prompt "Only download tarballs"
   141     default n
   142     depends on ! NO_DOWNLOAD
   143     help
   144       Only download the tarballs. Exit once it done.
   145       
   146       Usefull to pre-retrieve the tarballs before going off-line.
   147 
   148 config FORCE_DOWNLOAD
   149     bool
   150     prompt "Force downloads"
   151     default n
   152     depends on ! NO_DOWNLOAD
   153     help
   154       Force downloading tarballs, even if one already exists.
   155       Usefull if you suspect a tarball to be damaged.
   156 
   157 config FORCE_EXTRACT
   158     bool
   159     prompt "Force extractions"
   160     depends on ! ONLY_DOWNLOAD
   161     default n
   162     help
   163       Force extraction of already exctracted tarballs.
   164       
   165       Usefull if you suspect a previous extract did not complete (eg. broken
   166       tarball), or you added a new set of patches for this component.
   167 
   168 comment "Logging"
   169 
   170 choice
   171     bool
   172     prompt "Maximum log level to see:"
   173     default LOG_INFO
   174 
   175 config LOG_ERROR
   176     bool
   177     prompt "ERROR"
   178     help
   179       The build will be silent.
   180       Only if there is an error will you see a mesage.
   181 
   182 config LOG_WARN
   183     bool
   184     prompt "WARN"
   185     help
   186       The same as above, plus warnings.
   187 
   188 config LOG_INFO
   189     bool
   190     prompt "INFO"
   191     help
   192       The same as above, plus informational messages (main steps).
   193 
   194 config LOG_EXTRA
   195     bool
   196     prompt "EXTRA"
   197     help
   198       The same as above, plus extra messages (sub-steps).
   199 
   200 config LOG_DEBUG
   201     bool
   202     prompt "DEBUG"
   203     help
   204       The same as above, plus lots of debug information, of which each
   205       component's build messages (very noisy!).
   206 
   207 endchoice
   208 
   209 config LOG_LEVEL_MAX
   210     string
   211     default "ERROR"   if LOG_ERROR
   212     default "WARN"    if LOG_WARN
   213     default "INFO"    if LOG_INFO
   214     default "EXTRA"   if LOG_EXTRA
   215     default "DEBUG"   if LOG_DEBUG
   216 
   217 config LOG_PROGRESS_BAR
   218     bool
   219     prompt "Progress bar"
   220     default n
   221     depends on ! LOG_DEBUG
   222     help
   223       This option will print a "rotating bar" (/-\|) below the last log line
   224       to show work is not stalled.
   225       
   226       Available when not in DEBUG log level.
   227 
   228 config LOG_USE_COLORS
   229     bool
   230     prompt "Use colors for logging to console"
   231     default n
   232     help
   233       Use colors to highlight important messages.
   234       ERROR: bright red
   235       WARN : bright yellow
   236       INFO : bright green
   237       EXTRA: dim green
   238       DEBUG: dim white
   239 
   240 config LOG_TO_FILE
   241     bool
   242     prompt "Log to a file"
   243     default y
   244     help
   245       Save *full* logs to a file. Even log levels you didn't specify above
   246       will be available in this file.
   247 
   248 config LOG_FILE
   249     string
   250     prompt "Log file"
   251     default "${CT_PREFIX_DIR}/${CT_TARGET}.log"
   252     depends on LOG_TO_FILE
   253     help
   254       File name into which to put logs.
   255 
   256 endmenu