config/global.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Apr 13 22:46:02 2008 +0000 (2008-04-13)
changeset 441 f1326505e3e5
parent 425 548b7aa23385
child 442 ab046c11fbf7
permissions -rw-r--r--
Allow using an HTTP proxy to tunnel FTP and HTTP requests.

scripts/crosstool.sh | 14 14 0 0 +++++++++++++
config/global.in | 54 54 0 0 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+)
yann@1
     1
# Overall toolchain configuration: paths, jobs, etc...
yann@1
     2
yann@121
     3
# Ah, this option is here to break the dependency tracking, and allow
yann@121
     4
# dependent option to line-up with the options they depend on ,rather
yann@121
     5
# than being indented
yann@244
     6
# Use it to intersperse two config options depending one on the other,
yann@244
     7
# but don't want the second to be indented (for example because you have
yann@244
     8
# a comment between the two to separate them). See DOWNLOAD and EXTRACT
yann@244
     9
# options to see how it is used.
yann@121
    10
config FOOBAR
yann@121
    11
    bool
yann@121
    12
    default n
yann@121
    13
yann@1
    14
menu "Paths and misc options"
yann@1
    15
yann@197
    16
comment "crosstool-NG behavior"
yann@121
    17
yann@244
    18
config OBSOLETE
yann@244
    19
    bool
yann@244
    20
    prompt "Use obsolete features"
yann@244
    21
    default n
yann@244
    22
    help
yann@244
    23
      If you set this to Y, you will be able to select obsolete features.
yann@244
    24
      
yann@244
    25
      Such obsolete features are the use of old kernel headers, old
yann@244
    26
      gcc versions, etc...
yann@244
    27
yann@41
    28
config EXPERIMENTAL
yann@41
    29
    bool
yann@41
    30
    prompt "Try features marked as EXPERIMENTAL"
yann@41
    31
    default n
yann@41
    32
    help
yann@41
    33
      If you set this to Y, then you will be able to try very experimental
yann@41
    34
      features.
yann@41
    35
      
yann@41
    36
      Experimental features can be one of:
yann@41
    37
        - working, in which case you should tell me it is!
yann@41
    38
        - buggy, in which case you could try patching and send me the result
yann@41
    39
        - unfinished, in which case you could try hacking it and send me the result
yann@384
    40
        - non-existant, in which case you could also try hacking it in and send me
yann@384
    41
          the result
yann@41
    42
yann@244
    43
config BROKEN
yann@61
    44
    bool
yann@244
    45
    prompt "Try broken stuff"
yann@61
    46
    default n
yann@244
    47
    depends on EXPERIMENTAL
yann@61
    48
    help
yann@244
    49
      Select this if you want to _debug_ broken stuff.
yann@61
    50
yann@121
    51
config DEBUG_CT
yann@121
    52
    bool
yann@121
    53
    prompt "Debug crosstool-NG"
yann@121
    54
    default n
yann@121
    55
    help
yann@121
    56
      Say 'y' here to get some debugging options
yann@121
    57
yann@121
    58
if DEBUG_CT
yann@121
    59
yann@121
    60
config DEBUG_CT_PAUSE_STEPS
yann@121
    61
    bool
yann@121
    62
    prompt "Pause between every steps"
yann@121
    63
    default n
yann@121
    64
    help
yann@121
    65
      Say 'y' if you intend to attend the build, and want to investigate
yann@121
    66
      the result of each steps before running the next one.
yann@121
    67
yann@121
    68
config DEBUG_CT_SAVE_STEPS
yann@121
    69
    bool
yann@121
    70
    prompt "Save intermediate steps"
yann@121
    71
    default n
yann@121
    72
    help
yann@121
    73
      If you say 'y' here, then you will be able to restart crosstool-NG at
yann@168
    74
      any step.
yann@121
    75
      
yann@121
    76
      It is not currently possible to rstart at any of the debug facility.
yann@168
    77
      They are treated as a whole.
yann@168
    78
yann@168
    79
      See docs/overview.txt for the list of steps.
yann@121
    80
yann@121
    81
config DEBUG_CT_SAVE_STEPS_GZIP
yann@121
    82
    bool
yann@121
    83
    prompt "gzip saved states"
yann@121
    84
    default y
yann@121
    85
    depends on DEBUG_CT_SAVE_STEPS
yann@121
    86
    help
yann@121
    87
      If you are tight on space, then you can ask to gzip the saved states
yann@121
    88
      tarballs. On the other hand, this takes some longer time...
yann@121
    89
      
yann@121
    90
      To lose as less time as possible, the gzip process is done with a low
yann@121
    91
      compression ratio (-3), which gives roughly 70% gain in size. Going
yann@121
    92
      further doesn't gain much, and takes far more time (believe me, I've
yann@121
    93
      got figures here! :-) ).
yann@121
    94
yann@121
    95
endif
yann@121
    96
yann@121
    97
comment "Build behavior"
yann@121
    98
yann@1
    99
config PARALLEL_JOBS
yann@1
   100
    int
yann@1
   101
    prompt "Number of parallel jobs"
yann@1
   102
    default 1
yann@1
   103
    help
yann@1
   104
      Number of jobs make will be allowed to run concurently.
yann@1
   105
      Set this higher than the number of processors you have, but not too high.
yann@1
   106
      A good rule of thumb is twice the number of processors you have.
yann@1
   107
      
yann@1
   108
      Enter 1 (or 0) to have only one job at a time.
yann@1
   109
yann@1
   110
config LOAD
yann@1
   111
    int
yann@1
   112
    prompt "Maximum allowed load"
yann@1
   113
    default 0
yann@1
   114
    help
yann@1
   115
      Specifies that no new jobs should be started if there are others jobs
yann@1
   116
      running and the load average is at least this value.
yann@1
   117
      
yann@1
   118
      Makes sense on SMP machines only.
yann@1
   119
      
yann@1
   120
      Enter 0 to have no limit on the load average.
yann@1
   121
      
yann@1
   122
      Note: only the integer part of the load is allowed here (you can't enter
yann@1
   123
            0.75 for example).
yann@1
   124
yann@1
   125
config NICE
yann@1
   126
    int
yann@1
   127
    prompt "Nice level"
yann@1
   128
    default 0
yann@1
   129
    range 0 19
yann@1
   130
    help
yann@1
   131
      Renices the build process up.
yann@1
   132
yann@1
   133
config USE_PIPES
yann@1
   134
    bool
yann@1
   135
    prompt "Use -pipe"
yann@1
   136
    default y
yann@1
   137
    help
yann@1
   138
      Use gcc's option -pipe to use pipes rather than temp files when building
yann@1
   139
      the toolchain.
yann@1
   140
yann@1
   141
comment "Paths"
yann@1
   142
yann@85
   143
config LOCAL_TARBALLS_DIR
yann@1
   144
    string
yann@85
   145
    prompt "Local tarballs directory"
yann@85
   146
    default ""
yann@1
   147
    help
yann@85
   148
      If you have previously downloaded the tarballs, enter the PATH where
yann@85
   149
      you stored them here.
yann@31
   150
yann@265
   151
config SAVE_TARBALLS
yann@265
   152
    bool
yann@265
   153
    prompt "Save new tarballs"
yann@265
   154
    default n
yann@265
   155
    depends on LOCAL_TARBALLS_DIR != ""
yann@265
   156
    help
yann@425
   157
      If you say 'y' here, new downloaded tarballs will be saved in the
yann@265
   158
      directory you entered above.
yann@265
   159
yann@1
   160
config PREFIX_DIR
yann@1
   161
    string
yann@1
   162
    prompt "Prefix directory"
yann@1
   163
    default "${HOME}/${CT_TARGET}"
yann@1
   164
    help
yann@1
   165
      This is the path the toolchain will run from.
yann@1
   166
yann@1
   167
config INSTALL_DIR
yann@1
   168
    string
yann@1
   169
#    prompt "Install directory"
yann@1
   170
    default "${CT_PREFIX_DIR}"
yann@1
   171
#    help
yann@1
   172
#      This is the path the target will be installed into.
yann@1
   173
#      
yann@1
   174
#      Normally, you would set this to ${CT_PREFIX_DIR}, but if for some reasons
yann@1
   175
#      you can't write there, you can install somewhere else and have a third
yann@1
   176
#      person do the install for you.
yann@1
   177
#      The reason you might also want to install elsewhere is if you are going
yann@1
   178
#      to package your shinny new toolchain for distribution.
yann@1
   179
yann@1
   180
config CUSTOM_PATCH
yann@1
   181
    bool
yann@1
   182
    prompt "Use custom patch directory"
yann@1
   183
    default n
yann@1
   184
    help
yann@1
   185
      If you have custom patches that you want to be applied, say 'Y' here and
yann@1
   186
      enter the path directory below.
yann@1
   187
      
yann@1
   188
      Note that you must ensure that the patch directory is arranged the same
yann@1
   189
      way the official directory is.
yann@1
   190
yann@1
   191
config CUSTOM_PATCH_ONLY
yann@1
   192
    bool
yann@1
   193
    prompt "Only use custom patches"
yann@1
   194
    default n
yann@1
   195
    depends on CUSTOM_PATCH
yann@1
   196
    help
yann@197
   197
      Don't apply patches coming with crosstool-NG, only those patches available
yann@197
   198
      in the directory below.
yann@1
   199
      
yann@197
   200
      If you say 'N' here, then the patches provided with crosstool-NG will be
yann@197
   201
      applied first, and then your patches.
yann@1
   202
yann@1
   203
config CUSTOM_PATCH_DIR
yann@1
   204
    string
yann@1
   205
    prompt "Custom patch directory"
yann@1
   206
    default ""
yann@1
   207
    depends on CUSTOM_PATCH
yann@1
   208
    help
yann@1
   209
      Enter the custom patch directory here.
yann@1
   210
yann@14
   211
config REMOVE_DOCS
yann@14
   212
    bool
yann@14
   213
    prompt "Remove documentation"
yann@14
   214
    default n
yann@14
   215
    help
yann@14
   216
      Remove the installed documentation (man and info pages).
yann@14
   217
      Gains around 8MiB for a uClibc-based, C and C++ compiler.
yann@14
   218
yann@174
   219
config INSTALL_DIR_RO
yann@174
   220
    bool
yann@174
   221
    prompt "Render the toolchain read-only"
yann@174
   222
    default n
yann@174
   223
    help
yann@174
   224
      Render the directory of the toolchain (and its sub-directories)
yann@174
   225
      read-only.
yann@174
   226
      
yann@174
   227
      Usefull for toolchains destined for production.
yann@174
   228
yann@63
   229
comment "Downloading"
yann@1
   230
yann@63
   231
config FORCE_DOWNLOAD
yann@1
   232
    bool
yann@63
   233
    prompt "Force downloads"
yann@1
   234
    default n
yann@1
   235
    help
yann@63
   236
      Force downloading tarballs, even if one already exists.
yann@63
   237
      
yann@63
   238
      Usefull if you suspect a tarball to be damaged.
yann@1
   239
yann@1
   240
config ONLY_DOWNLOAD
yann@1
   241
    bool
yann@63
   242
    prompt "Stop after downloading tarballs"
yann@1
   243
    default n
yann@1
   244
    help
yann@1
   245
      Only download the tarballs. Exit once it done.
yann@1
   246
      
yann@1
   247
      Usefull to pre-retrieve the tarballs before going off-line.
yann@1
   248
yann@441
   249
choice
yann@441
   250
    bool
yann@441
   251
    prompt "Proxy type"
yann@441
   252
    default USE_NO_PROXY
yann@441
   253
yann@441
   254
config USE_NO_PROXY
yann@441
   255
    bool
yann@441
   256
    prompt "No proxy"
yann@441
   257
    help
yann@441
   258
      Select this option if you have a direct connection to the internet,
yann@441
   259
      or if you already set the environment adequately.
yann@441
   260
yann@441
   261
config USE_HTTP_PROXY
yann@441
   262
    bool
yann@441
   263
    prompt "HTTP proxy"
yann@441
   264
    help
yann@441
   265
      Use an HTTP proxy to connect to to the internet.
yann@441
   266
      Onlt the http and ftp protocols will be tunneled through this
yann@441
   267
      proxy.
yann@441
   268
yann@441
   269
      Alternatively to setting this options, you can set and export
yann@441
   270
      the following variable in your environment:
yann@441
   271
        ftp_proxy=http://user:passwd@proxy.server:port/
yann@441
   272
        http_proxy=http://user:passwd@proxy.server:port/
yann@441
   273
        https_proxy=http://user:passwd@proxy.server:port/
yann@441
   274
yann@441
   275
# Haha! Here is an interesting feature/bug of mconf!
yann@441
   276
# The following config entries will be shown out-side the
yann@441
   277
# choice menu!
yann@441
   278
# To add a third entry in the choice menu, add it after the
yann@441
   279
# if...endif conditional below, and so on for a fourth entry...
yann@441
   280
if USE_HTTP_PROXY
yann@441
   281
yann@441
   282
config HTTP_PROXY_HOST
yann@441
   283
    string
yann@441
   284
    prompt "HTTP proxy hostname/IP"
yann@441
   285
yann@441
   286
config HTTP_PROXY_PORT
yann@441
   287
    int
yann@441
   288
    prompt "HTTP proxy port"
yann@441
   289
    
yann@441
   290
config HTTP_PROXY_USER
yann@441
   291
    string
yann@441
   292
    prompt "HTTP proxy user name"
yann@441
   293
yann@441
   294
config HTTP_PROXY_PASSWD
yann@441
   295
    string
yann@441
   296
    prompt "HTTP proxy password"
yann@441
   297
yann@441
   298
endif # USE_HTTP_PROXY
yann@441
   299
yann@441
   300
endchoice
yann@441
   301
yann@441
   302
# Force restore indentation
yann@121
   303
config FOOBAR
yann@121
   304
yann@244
   305
if ! ONLY_DOWNLOAD
yann@244
   306
yann@63
   307
comment "Extracting"
yann@1
   308
yann@1
   309
config FORCE_EXTRACT
yann@1
   310
    bool
yann@1
   311
    prompt "Force extractions"
yann@1
   312
    default n
yann@1
   313
    help
yann@1
   314
      Force extraction of already exctracted tarballs.
yann@1
   315
      
yann@1
   316
      Usefull if you suspect a previous extract did not complete (eg. broken
yann@1
   317
      tarball), or you added a new set of patches for this component.
yann@1
   318
yann@63
   319
config ONLY_EXTRACT
yann@63
   320
    bool
yann@63
   321
    prompt "Stop after extracting tarballs"
yann@63
   322
    default n
yann@63
   323
    help
yann@63
   324
      Exit after unpacking and patching tarballs.
yann@63
   325
      
yann@63
   326
      Usefull to look at the code before doing the build itself.
yann@63
   327
yann@244
   328
endif # ! ONLY_DOWNLOAD
yann@244
   329
yann@1
   330
comment "Logging"
yann@1
   331
yann@1
   332
choice
yann@1
   333
    bool
yann@1
   334
    prompt "Maximum log level to see:"
yann@252
   335
    default LOG_INFO if !DEBUG_CT
yann@252
   336
    default LOG_DEBUG if DEBUG_CT
yann@1
   337
yann@1
   338
config LOG_ERROR
yann@1
   339
    bool
yann@1
   340
    prompt "ERROR"
yann@1
   341
    help
yann@1
   342
      The build will be silent.
yann@174
   343
      Only if there is an error will you see a message.
yann@1
   344
yann@1
   345
config LOG_WARN
yann@1
   346
    bool
yann@1
   347
    prompt "WARN"
yann@1
   348
    help
yann@1
   349
      The same as above, plus warnings.
yann@1
   350
yann@1
   351
config LOG_INFO
yann@1
   352
    bool
yann@1
   353
    prompt "INFO"
yann@1
   354
    help
yann@1
   355
      The same as above, plus informational messages (main steps).
yann@1
   356
yann@1
   357
config LOG_EXTRA
yann@1
   358
    bool
yann@1
   359
    prompt "EXTRA"
yann@1
   360
    help
yann@1
   361
      The same as above, plus extra messages (sub-steps).
yann@1
   362
yann@1
   363
config LOG_DEBUG
yann@1
   364
    bool
yann@1
   365
    prompt "DEBUG"
yann@1
   366
    help
yann@78
   367
      The same as above, plus lots of crosstool-NG debug information.
yann@78
   368
yann@78
   369
config LOG_ALL
yann@78
   370
    bool
yann@78
   371
    prompt "ALL"
yann@78
   372
    help
yann@78
   373
      The same as above, plus all components build messages (very noisy!).
yann@1
   374
yann@1
   375
endchoice
yann@1
   376
yann@1
   377
config LOG_LEVEL_MAX
yann@1
   378
    string
yann@1
   379
    default "ERROR"   if LOG_ERROR
yann@1
   380
    default "WARN"    if LOG_WARN
yann@1
   381
    default "INFO"    if LOG_INFO
yann@1
   382
    default "EXTRA"   if LOG_EXTRA
yann@1
   383
    default "DEBUG"   if LOG_DEBUG
yann@78
   384
    default "ALL"     if LOG_ALL
yann@1
   385
yann@47
   386
config LOG_SEE_TOOLS_WARN
yann@47
   387
    bool
yann@174
   388
    prompt "Warnings from the tools' builds"
yann@47
   389
    default n
yann@47
   390
    depends on ! LOG_ERROR
yann@47
   391
    help
yann@197
   392
      Treat warnings from the different tools as crosstool-NG warnings.
yann@108
   393
      If you say 'y' here, then those warnings will be prefixed with
yann@108
   394
      '[WARN ]' instead of the default '[ALL  ]'.
yann@47
   395
yann@108
   396
      You can safely say 'n' here. Those warnings will anyway be
yann@108
   397
      recorded in the log file (provided you configured one).
yann@47
   398
yann@197
   399
      Tools error will always be logged as crosstool-NG errors.
yann@174
   400
yann@1
   401
config LOG_PROGRESS_BAR
yann@1
   402
    bool
yann@1
   403
    prompt "Progress bar"
yann@173
   404
    default y
yann@78
   405
    depends on ! LOG_ALL
yann@1
   406
    help
yann@112
   407
      If you say 'y' here, you'll be able to see the elapsed time.
yann@1
   408
      
yann@112
   409
      As a bonus, you'll also get a rotating bar (/-\|) showing you
yann@112
   410
      that the build is not stalled (the bar rotates 1/4 every 10 lines
yann@112
   411
      of components build log).
yann@112
   412
yann@112
   413
      Note that the elapsed time can stall for a little while if a
yann@112
   414
      component has long commands, as the elapsed time is only updated
yann@112
   415
      each line.
yann@1
   416
yann@1
   417
config LOG_TO_FILE
yann@1
   418
    bool
yann@1
   419
    prompt "Log to a file"
yann@1
   420
    default y
yann@1
   421
    help
yann@1
   422
      Save *full* logs to a file. Even log levels you didn't specify above
yann@174
   423
      will be available in this file. The log file will be named build.log
yann@174
   424
      and stored in the toolchain prefix dir (set above).
yann@1
   425
yann@47
   426
      As a bonus, there is a script in tools/extractConfig.sh that is able
yann@47
   427
      to extract the configuration of crosstool-NG from the log file.
yann@47
   428
yann@47
   429
      Definitely, say Y.
yann@47
   430
yann@174
   431
config LOG_FILE_COMPRESS
yann@174
   432
    bool
yann@174
   433
    prompt "Compress the log file"
yann@174
   434
    default n
yann@1
   435
    depends on LOG_TO_FILE
yann@1
   436
    help
yann@174
   437
      Compress the log file once the toolchain is successfully built.
yann@1
   438
yann@1
   439
endmenu