config/global.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jul 30 21:09:12 2007 +0000 (2007-07-30)
changeset 306 1984d7bcea28
parent 252 ff95210bd9bd
child 384 5b30e5c8e25c
permissions -rw-r--r--
Small typo fix.
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@41
    40
        - non-existant, in which case you could also try hacking it in and send the result
yann@41
    41
yann@244
    42
config BROKEN
yann@61
    43
    bool
yann@244
    44
    prompt "Try broken stuff"
yann@61
    45
    default n
yann@244
    46
    depends on EXPERIMENTAL
yann@61
    47
    help
yann@244
    48
      Select this if you want to _debug_ broken stuff.
yann@61
    49
yann@121
    50
config DEBUG_CT
yann@121
    51
    bool
yann@121
    52
    prompt "Debug crosstool-NG"
yann@121
    53
    default n
yann@121
    54
    help
yann@121
    55
      Say 'y' here to get some debugging options
yann@121
    56
yann@121
    57
if DEBUG_CT
yann@121
    58
yann@121
    59
config DEBUG_CT_PAUSE_STEPS
yann@121
    60
    bool
yann@121
    61
    prompt "Pause between every steps"
yann@121
    62
    default n
yann@121
    63
    help
yann@121
    64
      Say 'y' if you intend to attend the build, and want to investigate
yann@121
    65
      the result of each steps before running the next one.
yann@121
    66
yann@121
    67
config DEBUG_CT_SAVE_STEPS
yann@121
    68
    bool
yann@121
    69
    prompt "Save intermediate steps"
yann@121
    70
    default n
yann@121
    71
    help
yann@121
    72
      If you say 'y' here, then you will be able to restart crosstool-NG at
yann@168
    73
      any step.
yann@121
    74
      
yann@121
    75
      It is not currently possible to rstart at any of the debug facility.
yann@168
    76
      They are treated as a whole.
yann@168
    77
yann@168
    78
      See docs/overview.txt for the list of steps.
yann@121
    79
yann@121
    80
config DEBUG_CT_SAVE_STEPS_GZIP
yann@121
    81
    bool
yann@121
    82
    prompt "gzip saved states"
yann@121
    83
    default y
yann@121
    84
    depends on DEBUG_CT_SAVE_STEPS
yann@121
    85
    help
yann@121
    86
      If you are tight on space, then you can ask to gzip the saved states
yann@121
    87
      tarballs. On the other hand, this takes some longer time...
yann@121
    88
      
yann@121
    89
      To lose as less time as possible, the gzip process is done with a low
yann@121
    90
      compression ratio (-3), which gives roughly 70% gain in size. Going
yann@121
    91
      further doesn't gain much, and takes far more time (believe me, I've
yann@121
    92
      got figures here! :-) ).
yann@121
    93
yann@121
    94
endif
yann@121
    95
yann@121
    96
comment "Build behavior"
yann@121
    97
yann@1
    98
config PARALLEL_JOBS
yann@1
    99
    int
yann@1
   100
    prompt "Number of parallel jobs"
yann@1
   101
    default 1
yann@1
   102
    help
yann@1
   103
      Number of jobs make will be allowed to run concurently.
yann@1
   104
      Set this higher than the number of processors you have, but not too high.
yann@1
   105
      A good rule of thumb is twice the number of processors you have.
yann@1
   106
      
yann@1
   107
      Enter 1 (or 0) to have only one job at a time.
yann@1
   108
yann@1
   109
config LOAD
yann@1
   110
    int
yann@1
   111
    prompt "Maximum allowed load"
yann@1
   112
    default 0
yann@1
   113
    help
yann@1
   114
      Specifies that no new jobs should be started if there are others jobs
yann@1
   115
      running and the load average is at least this value.
yann@1
   116
      
yann@1
   117
      Makes sense on SMP machines only.
yann@1
   118
      
yann@1
   119
      Enter 0 to have no limit on the load average.
yann@1
   120
      
yann@1
   121
      Note: only the integer part of the load is allowed here (you can't enter
yann@1
   122
            0.75 for example).
yann@1
   123
yann@1
   124
config NICE
yann@1
   125
    int
yann@1
   126
    prompt "Nice level"
yann@1
   127
    default 0
yann@1
   128
    range 0 19
yann@1
   129
    help
yann@1
   130
      Renices the build process up.
yann@1
   131
yann@1
   132
config USE_PIPES
yann@1
   133
    bool
yann@1
   134
    prompt "Use -pipe"
yann@1
   135
    default y
yann@1
   136
    help
yann@1
   137
      Use gcc's option -pipe to use pipes rather than temp files when building
yann@1
   138
      the toolchain.
yann@1
   139
yann@1
   140
comment "Paths"
yann@1
   141
yann@85
   142
config LOCAL_TARBALLS_DIR
yann@1
   143
    string
yann@85
   144
    prompt "Local tarballs directory"
yann@85
   145
    default ""
yann@1
   146
    help
yann@85
   147
      If you have previously downloaded the tarballs, enter the PATH where
yann@85
   148
      you stored them here.
yann@31
   149
yann@265
   150
config SAVE_TARBALLS
yann@265
   151
    bool
yann@265
   152
    prompt "Save new tarballs"
yann@265
   153
    default n
yann@265
   154
    depends on LOCAL_TARBALLS_DIR != ""
yann@265
   155
    help
yann@265
   156
      If you say 'y' here, new doanloaded tarballs will be saved in the
yann@265
   157
      directory you entered above.
yann@265
   158
yann@1
   159
config PREFIX_DIR
yann@1
   160
    string
yann@1
   161
    prompt "Prefix directory"
yann@1
   162
    default "${HOME}/${CT_TARGET}"
yann@1
   163
    help
yann@1
   164
      This is the path the toolchain will run from.
yann@1
   165
yann@1
   166
config INSTALL_DIR
yann@1
   167
    string
yann@1
   168
#    prompt "Install directory"
yann@1
   169
    default "${CT_PREFIX_DIR}"
yann@1
   170
#    help
yann@1
   171
#      This is the path the target will be installed into.
yann@1
   172
#      
yann@1
   173
#      Normally, you would set this to ${CT_PREFIX_DIR}, but if for some reasons
yann@1
   174
#      you can't write there, you can install somewhere else and have a third
yann@1
   175
#      person do the install for you.
yann@1
   176
#      The reason you might also want to install elsewhere is if you are going
yann@1
   177
#      to package your shinny new toolchain for distribution.
yann@1
   178
yann@1
   179
config CUSTOM_PATCH
yann@1
   180
    bool
yann@1
   181
    prompt "Use custom patch directory"
yann@1
   182
    default n
yann@1
   183
    help
yann@1
   184
      If you have custom patches that you want to be applied, say 'Y' here and
yann@1
   185
      enter the path directory below.
yann@1
   186
      
yann@1
   187
      Note that you must ensure that the patch directory is arranged the same
yann@1
   188
      way the official directory is.
yann@1
   189
yann@1
   190
config CUSTOM_PATCH_ONLY
yann@1
   191
    bool
yann@1
   192
    prompt "Only use custom patches"
yann@1
   193
    default n
yann@1
   194
    depends on CUSTOM_PATCH
yann@1
   195
    help
yann@197
   196
      Don't apply patches coming with crosstool-NG, only those patches available
yann@197
   197
      in the directory below.
yann@1
   198
      
yann@197
   199
      If you say 'N' here, then the patches provided with crosstool-NG will be
yann@197
   200
      applied first, and then your patches.
yann@1
   201
yann@1
   202
config CUSTOM_PATCH_DIR
yann@1
   203
    string
yann@1
   204
    prompt "Custom patch directory"
yann@1
   205
    default ""
yann@1
   206
    depends on CUSTOM_PATCH
yann@1
   207
    help
yann@1
   208
      Enter the custom patch directory here.
yann@1
   209
yann@14
   210
config REMOVE_DOCS
yann@14
   211
    bool
yann@14
   212
    prompt "Remove documentation"
yann@14
   213
    default n
yann@14
   214
    help
yann@14
   215
      Remove the installed documentation (man and info pages).
yann@14
   216
      Gains around 8MiB for a uClibc-based, C and C++ compiler.
yann@14
   217
yann@174
   218
config INSTALL_DIR_RO
yann@174
   219
    bool
yann@174
   220
    prompt "Render the toolchain read-only"
yann@174
   221
    default n
yann@174
   222
    help
yann@174
   223
      Render the directory of the toolchain (and its sub-directories)
yann@174
   224
      read-only.
yann@174
   225
      
yann@174
   226
      Usefull for toolchains destined for production.
yann@174
   227
yann@63
   228
comment "Downloading"
yann@1
   229
yann@63
   230
config FORCE_DOWNLOAD
yann@1
   231
    bool
yann@63
   232
    prompt "Force downloads"
yann@1
   233
    default n
yann@1
   234
    help
yann@63
   235
      Force downloading tarballs, even if one already exists.
yann@63
   236
      
yann@63
   237
      Usefull if you suspect a tarball to be damaged.
yann@1
   238
yann@1
   239
config ONLY_DOWNLOAD
yann@1
   240
    bool
yann@63
   241
    prompt "Stop after downloading tarballs"
yann@1
   242
    default n
yann@1
   243
    help
yann@1
   244
      Only download the tarballs. Exit once it done.
yann@1
   245
      
yann@1
   246
      Usefull to pre-retrieve the tarballs before going off-line.
yann@1
   247
yann@121
   248
config FOOBAR
yann@121
   249
yann@244
   250
if ! ONLY_DOWNLOAD
yann@244
   251
yann@63
   252
comment "Extracting"
yann@1
   253
yann@1
   254
config FORCE_EXTRACT
yann@1
   255
    bool
yann@1
   256
    prompt "Force extractions"
yann@1
   257
    default n
yann@1
   258
    help
yann@1
   259
      Force extraction of already exctracted tarballs.
yann@1
   260
      
yann@1
   261
      Usefull if you suspect a previous extract did not complete (eg. broken
yann@1
   262
      tarball), or you added a new set of patches for this component.
yann@1
   263
yann@63
   264
config ONLY_EXTRACT
yann@63
   265
    bool
yann@63
   266
    prompt "Stop after extracting tarballs"
yann@63
   267
    default n
yann@63
   268
    help
yann@63
   269
      Exit after unpacking and patching tarballs.
yann@63
   270
      
yann@63
   271
      Usefull to look at the code before doing the build itself.
yann@63
   272
yann@244
   273
endif # ! ONLY_DOWNLOAD
yann@244
   274
yann@1
   275
comment "Logging"
yann@1
   276
yann@1
   277
choice
yann@1
   278
    bool
yann@1
   279
    prompt "Maximum log level to see:"
yann@252
   280
    default LOG_INFO if !DEBUG_CT
yann@252
   281
    default LOG_DEBUG if DEBUG_CT
yann@1
   282
yann@1
   283
config LOG_ERROR
yann@1
   284
    bool
yann@1
   285
    prompt "ERROR"
yann@1
   286
    help
yann@1
   287
      The build will be silent.
yann@174
   288
      Only if there is an error will you see a message.
yann@1
   289
yann@1
   290
config LOG_WARN
yann@1
   291
    bool
yann@1
   292
    prompt "WARN"
yann@1
   293
    help
yann@1
   294
      The same as above, plus warnings.
yann@1
   295
yann@1
   296
config LOG_INFO
yann@1
   297
    bool
yann@1
   298
    prompt "INFO"
yann@1
   299
    help
yann@1
   300
      The same as above, plus informational messages (main steps).
yann@1
   301
yann@1
   302
config LOG_EXTRA
yann@1
   303
    bool
yann@1
   304
    prompt "EXTRA"
yann@1
   305
    help
yann@1
   306
      The same as above, plus extra messages (sub-steps).
yann@1
   307
yann@1
   308
config LOG_DEBUG
yann@1
   309
    bool
yann@1
   310
    prompt "DEBUG"
yann@1
   311
    help
yann@78
   312
      The same as above, plus lots of crosstool-NG debug information.
yann@78
   313
yann@78
   314
config LOG_ALL
yann@78
   315
    bool
yann@78
   316
    prompt "ALL"
yann@78
   317
    help
yann@78
   318
      The same as above, plus all components build messages (very noisy!).
yann@1
   319
yann@1
   320
endchoice
yann@1
   321
yann@1
   322
config LOG_LEVEL_MAX
yann@1
   323
    string
yann@1
   324
    default "ERROR"   if LOG_ERROR
yann@1
   325
    default "WARN"    if LOG_WARN
yann@1
   326
    default "INFO"    if LOG_INFO
yann@1
   327
    default "EXTRA"   if LOG_EXTRA
yann@1
   328
    default "DEBUG"   if LOG_DEBUG
yann@78
   329
    default "ALL"     if LOG_ALL
yann@1
   330
yann@47
   331
config LOG_SEE_TOOLS_WARN
yann@47
   332
    bool
yann@174
   333
    prompt "Warnings from the tools' builds"
yann@47
   334
    default n
yann@47
   335
    depends on ! LOG_ERROR
yann@47
   336
    help
yann@197
   337
      Treat warnings from the different tools as crosstool-NG warnings.
yann@108
   338
      If you say 'y' here, then those warnings will be prefixed with
yann@108
   339
      '[WARN ]' instead of the default '[ALL  ]'.
yann@47
   340
yann@108
   341
      You can safely say 'n' here. Those warnings will anyway be
yann@108
   342
      recorded in the log file (provided you configured one).
yann@47
   343
yann@197
   344
      Tools error will always be logged as crosstool-NG errors.
yann@174
   345
yann@1
   346
config LOG_PROGRESS_BAR
yann@1
   347
    bool
yann@1
   348
    prompt "Progress bar"
yann@173
   349
    default y
yann@78
   350
    depends on ! LOG_ALL
yann@1
   351
    help
yann@112
   352
      If you say 'y' here, you'll be able to see the elapsed time.
yann@1
   353
      
yann@112
   354
      As a bonus, you'll also get a rotating bar (/-\|) showing you
yann@112
   355
      that the build is not stalled (the bar rotates 1/4 every 10 lines
yann@112
   356
      of components build log).
yann@112
   357
yann@112
   358
      Note that the elapsed time can stall for a little while if a
yann@112
   359
      component has long commands, as the elapsed time is only updated
yann@112
   360
      each line.
yann@1
   361
yann@1
   362
config LOG_TO_FILE
yann@1
   363
    bool
yann@1
   364
    prompt "Log to a file"
yann@1
   365
    default y
yann@1
   366
    help
yann@1
   367
      Save *full* logs to a file. Even log levels you didn't specify above
yann@174
   368
      will be available in this file. The log file will be named build.log
yann@174
   369
      and stored in the toolchain prefix dir (set above).
yann@1
   370
yann@47
   371
      As a bonus, there is a script in tools/extractConfig.sh that is able
yann@47
   372
      to extract the configuration of crosstool-NG from the log file.
yann@47
   373
yann@47
   374
      Definitely, say Y.
yann@47
   375
yann@174
   376
config LOG_FILE_COMPRESS
yann@174
   377
    bool
yann@174
   378
    prompt "Compress the log file"
yann@174
   379
    default n
yann@1
   380
    depends on LOG_TO_FILE
yann@1
   381
    help
yann@174
   382
      Compress the log file once the toolchain is successfully built.
yann@1
   383
yann@1
   384
endmenu