config/global.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Apr 10 16:17:39 2007 +0000 (2007-04-10)
changeset 31 97e44d892c92
parent 14 11726b835286
child 41 fd6ad5721f77
permissions -rw-r--r--
Use ${CT_TOP_DIR}/build as a base for build directories (used in default values for paths).
Remove this directory on distclean (hard-coded).
Mark the version to be 0.0.1-svn (no release yet).
     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 "${CT_TOP_DIR}/build/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 "${CT_TOP_DIR}/build/${CT_TARGET}/${CT_CC}-${CT_CC_VERSION}-${CT_LIBC}-${CT_LIBC_VERSION}/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       You should not need to change this from the default.
    69 
    70 config BUILD_DIR
    71     string
    72     prompt "Build directory"
    73     default "${CT_TOP_DIR}/build/${CT_TARGET}/${CT_CC}-${CT_CC_VERSION}-${CT_LIBC}-${CT_LIBC_VERSION}/build"
    74     help
    75       This is the directory into which builds will occur.
    76       
    77       Once again, arrange for one build directory for each toolchain you build,
    78       to avoid collision.
    79 
    80       You should not need to change this from the default.
    81 
    82 config PREFIX_DIR
    83     string
    84     prompt "Prefix directory"
    85     default "${HOME}/${CT_TARGET}"
    86     help
    87       This is the path the toolchain will run from.
    88 
    89 config INSTALL_DIR
    90     string
    91 #    prompt "Install directory"
    92     default "${CT_PREFIX_DIR}"
    93 #    help
    94 #      This is the path the target will be installed into.
    95 #      
    96 #      Normally, you would set this to ${CT_PREFIX_DIR}, but if for some reasons
    97 #      you can't write there, you can install somewhere else and have a third
    98 #      person do the install for you.
    99 #      The reason you might also want to install elsewhere is if you are going
   100 #      to package your shinny new toolchain for distribution.
   101 
   102 config CUSTOM_PATCH
   103     bool
   104     prompt "Use custom patch directory"
   105     default n
   106     help
   107       If you have custom patches that you want to be applied, say 'Y' here and
   108       enter the path directory below.
   109       
   110       Note that you must ensure that the patch directory is arranged the same
   111       way the official directory is.
   112 
   113 config CUSTOM_PATCH_ONLY
   114     bool
   115     prompt "Only use custom patches"
   116     default n
   117     depends on CUSTOM_PATCH
   118     help
   119       Don't apply patches coming with CT-NG, only those patches available in
   120       the directory below.
   121       
   122       If you say 'N' here, then the patches provided with CT-NG will be applied
   123       first, and then your patches.
   124 
   125 config CUSTOM_PATCH_DIR
   126     string
   127     prompt "Custom patch directory"
   128     default ""
   129     depends on CUSTOM_PATCH
   130     help
   131       Enter the custom patch directory here.
   132 
   133 config REMOVE_DOCS
   134     bool
   135     prompt "Remove documentation"
   136     default n
   137     help
   138       Remove the installed documentation (man and info pages).
   139       Gains around 8MiB for a uClibc-based, C and C++ compiler.
   140 
   141 comment "Downloading and extracting"
   142 
   143 config NO_DOWNLOAD
   144     bool
   145     prompt "Avoid downloads"
   146     default n
   147     help
   148       Avoid downloading anything. Bail out if a tarball is missing.
   149 
   150 config ONLY_DOWNLOAD
   151     bool
   152     prompt "Only download tarballs"
   153     default n
   154     depends on ! NO_DOWNLOAD
   155     help
   156       Only download the tarballs. Exit once it done.
   157       
   158       Usefull to pre-retrieve the tarballs before going off-line.
   159 
   160 config FORCE_DOWNLOAD
   161     bool
   162     prompt "Force downloads"
   163     default n
   164     depends on ! NO_DOWNLOAD
   165     help
   166       Force downloading tarballs, even if one already exists.
   167       Usefull if you suspect a tarball to be damaged.
   168 
   169 config FORCE_EXTRACT
   170     bool
   171     prompt "Force extractions"
   172     depends on ! ONLY_DOWNLOAD
   173     default n
   174     help
   175       Force extraction of already exctracted tarballs.
   176       
   177       Usefull if you suspect a previous extract did not complete (eg. broken
   178       tarball), or you added a new set of patches for this component.
   179 
   180 comment "Logging"
   181 
   182 choice
   183     bool
   184     prompt "Maximum log level to see:"
   185     default LOG_INFO
   186 
   187 config LOG_ERROR
   188     bool
   189     prompt "ERROR"
   190     help
   191       The build will be silent.
   192       Only if there is an error will you see a mesage.
   193 
   194 config LOG_WARN
   195     bool
   196     prompt "WARN"
   197     help
   198       The same as above, plus warnings.
   199 
   200 config LOG_INFO
   201     bool
   202     prompt "INFO"
   203     help
   204       The same as above, plus informational messages (main steps).
   205 
   206 config LOG_EXTRA
   207     bool
   208     prompt "EXTRA"
   209     help
   210       The same as above, plus extra messages (sub-steps).
   211 
   212 config LOG_DEBUG
   213     bool
   214     prompt "DEBUG"
   215     help
   216       The same as above, plus lots of debug information, of which each
   217       component's build messages (very noisy!).
   218 
   219 endchoice
   220 
   221 config LOG_LEVEL_MAX
   222     string
   223     default "ERROR"   if LOG_ERROR
   224     default "WARN"    if LOG_WARN
   225     default "INFO"    if LOG_INFO
   226     default "EXTRA"   if LOG_EXTRA
   227     default "DEBUG"   if LOG_DEBUG
   228 
   229 config LOG_PROGRESS_BAR
   230     bool
   231     prompt "Progress bar"
   232     default n
   233     depends on ! LOG_DEBUG
   234     help
   235       This option will print a "rotating bar" (/-\|) below the last log line
   236       to show work is not stalled.
   237       
   238       Available when not in DEBUG log level.
   239 
   240 config LOG_USE_COLORS
   241     bool
   242     prompt "Use colors for logging to console"
   243     default n
   244     help
   245       Use colors to highlight important messages.
   246       ERROR: bright red
   247       WARN : bright yellow
   248       INFO : bright green
   249       EXTRA: dim green
   250       DEBUG: dim white
   251 
   252 config LOG_TO_FILE
   253     bool
   254     prompt "Log to a file"
   255     default y
   256     help
   257       Save *full* logs to a file. Even log levels you didn't specify above
   258       will be available in this file.
   259 
   260 config LOG_FILE
   261     string
   262     prompt "Log file"
   263     default "${CT_PREFIX_DIR}/${CT_TARGET}.log"
   264     depends on LOG_TO_FILE
   265     help
   266       File name into which to put logs.
   267 
   268 endmenu