config/global.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jul 13 12:15:53 2007 +0000 (2007-07-13)
changeset 244 d5a7240240c5
parent 197 9383bf4a2e2e
child 252 ff95210bd9bd
permissions -rw-r--r--
Introduce a BROKEN option (depends on EXPERIMENTAL) to hide/see broken stuff for debugging sessions!
Re-order: OBSOLETE goes before EXPERIMENTAL.
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@1
   150
config PREFIX_DIR
yann@1
   151
    string
yann@1
   152
    prompt "Prefix directory"
yann@1
   153
    default "${HOME}/${CT_TARGET}"
yann@1
   154
    help
yann@1
   155
      This is the path the toolchain will run from.
yann@1
   156
yann@1
   157
config INSTALL_DIR
yann@1
   158
    string
yann@1
   159
#    prompt "Install directory"
yann@1
   160
    default "${CT_PREFIX_DIR}"
yann@1
   161
#    help
yann@1
   162
#      This is the path the target will be installed into.
yann@1
   163
#      
yann@1
   164
#      Normally, you would set this to ${CT_PREFIX_DIR}, but if for some reasons
yann@1
   165
#      you can't write there, you can install somewhere else and have a third
yann@1
   166
#      person do the install for you.
yann@1
   167
#      The reason you might also want to install elsewhere is if you are going
yann@1
   168
#      to package your shinny new toolchain for distribution.
yann@1
   169
yann@1
   170
config CUSTOM_PATCH
yann@1
   171
    bool
yann@1
   172
    prompt "Use custom patch directory"
yann@1
   173
    default n
yann@1
   174
    help
yann@1
   175
      If you have custom patches that you want to be applied, say 'Y' here and
yann@1
   176
      enter the path directory below.
yann@1
   177
      
yann@1
   178
      Note that you must ensure that the patch directory is arranged the same
yann@1
   179
      way the official directory is.
yann@1
   180
yann@1
   181
config CUSTOM_PATCH_ONLY
yann@1
   182
    bool
yann@1
   183
    prompt "Only use custom patches"
yann@1
   184
    default n
yann@1
   185
    depends on CUSTOM_PATCH
yann@1
   186
    help
yann@197
   187
      Don't apply patches coming with crosstool-NG, only those patches available
yann@197
   188
      in the directory below.
yann@1
   189
      
yann@197
   190
      If you say 'N' here, then the patches provided with crosstool-NG will be
yann@197
   191
      applied first, and then your patches.
yann@1
   192
yann@1
   193
config CUSTOM_PATCH_DIR
yann@1
   194
    string
yann@1
   195
    prompt "Custom patch directory"
yann@1
   196
    default ""
yann@1
   197
    depends on CUSTOM_PATCH
yann@1
   198
    help
yann@1
   199
      Enter the custom patch directory here.
yann@1
   200
yann@14
   201
config REMOVE_DOCS
yann@14
   202
    bool
yann@14
   203
    prompt "Remove documentation"
yann@14
   204
    default n
yann@14
   205
    help
yann@14
   206
      Remove the installed documentation (man and info pages).
yann@14
   207
      Gains around 8MiB for a uClibc-based, C and C++ compiler.
yann@14
   208
yann@174
   209
config INSTALL_DIR_RO
yann@174
   210
    bool
yann@174
   211
    prompt "Render the toolchain read-only"
yann@174
   212
    default n
yann@174
   213
    help
yann@174
   214
      Render the directory of the toolchain (and its sub-directories)
yann@174
   215
      read-only.
yann@174
   216
      
yann@174
   217
      Usefull for toolchains destined for production.
yann@174
   218
yann@63
   219
comment "Downloading"
yann@1
   220
yann@63
   221
config FORCE_DOWNLOAD
yann@1
   222
    bool
yann@63
   223
    prompt "Force downloads"
yann@1
   224
    default n
yann@1
   225
    help
yann@63
   226
      Force downloading tarballs, even if one already exists.
yann@63
   227
      
yann@63
   228
      Usefull if you suspect a tarball to be damaged.
yann@1
   229
yann@1
   230
config ONLY_DOWNLOAD
yann@1
   231
    bool
yann@63
   232
    prompt "Stop after downloading tarballs"
yann@1
   233
    default n
yann@1
   234
    help
yann@1
   235
      Only download the tarballs. Exit once it done.
yann@1
   236
      
yann@1
   237
      Usefull to pre-retrieve the tarballs before going off-line.
yann@1
   238
yann@121
   239
config FOOBAR
yann@121
   240
yann@244
   241
if ! ONLY_DOWNLOAD
yann@244
   242
yann@63
   243
comment "Extracting"
yann@1
   244
yann@1
   245
config FORCE_EXTRACT
yann@1
   246
    bool
yann@1
   247
    prompt "Force extractions"
yann@1
   248
    default n
yann@1
   249
    help
yann@1
   250
      Force extraction of already exctracted tarballs.
yann@1
   251
      
yann@1
   252
      Usefull if you suspect a previous extract did not complete (eg. broken
yann@1
   253
      tarball), or you added a new set of patches for this component.
yann@1
   254
yann@63
   255
config ONLY_EXTRACT
yann@63
   256
    bool
yann@63
   257
    prompt "Stop after extracting tarballs"
yann@63
   258
    default n
yann@63
   259
    help
yann@63
   260
      Exit after unpacking and patching tarballs.
yann@63
   261
      
yann@63
   262
      Usefull to look at the code before doing the build itself.
yann@63
   263
yann@244
   264
endif # ! ONLY_DOWNLOAD
yann@244
   265
yann@1
   266
comment "Logging"
yann@1
   267
yann@1
   268
choice
yann@1
   269
    bool
yann@1
   270
    prompt "Maximum log level to see:"
yann@1
   271
    default LOG_INFO
yann@1
   272
yann@1
   273
config LOG_ERROR
yann@1
   274
    bool
yann@1
   275
    prompt "ERROR"
yann@1
   276
    help
yann@1
   277
      The build will be silent.
yann@174
   278
      Only if there is an error will you see a message.
yann@1
   279
yann@1
   280
config LOG_WARN
yann@1
   281
    bool
yann@1
   282
    prompt "WARN"
yann@1
   283
    help
yann@1
   284
      The same as above, plus warnings.
yann@1
   285
yann@1
   286
config LOG_INFO
yann@1
   287
    bool
yann@1
   288
    prompt "INFO"
yann@1
   289
    help
yann@1
   290
      The same as above, plus informational messages (main steps).
yann@1
   291
yann@1
   292
config LOG_EXTRA
yann@1
   293
    bool
yann@1
   294
    prompt "EXTRA"
yann@1
   295
    help
yann@1
   296
      The same as above, plus extra messages (sub-steps).
yann@1
   297
yann@1
   298
config LOG_DEBUG
yann@1
   299
    bool
yann@1
   300
    prompt "DEBUG"
yann@1
   301
    help
yann@78
   302
      The same as above, plus lots of crosstool-NG debug information.
yann@78
   303
yann@78
   304
config LOG_ALL
yann@78
   305
    bool
yann@78
   306
    prompt "ALL"
yann@78
   307
    help
yann@78
   308
      The same as above, plus all components build messages (very noisy!).
yann@1
   309
yann@1
   310
endchoice
yann@1
   311
yann@1
   312
config LOG_LEVEL_MAX
yann@1
   313
    string
yann@1
   314
    default "ERROR"   if LOG_ERROR
yann@1
   315
    default "WARN"    if LOG_WARN
yann@1
   316
    default "INFO"    if LOG_INFO
yann@1
   317
    default "EXTRA"   if LOG_EXTRA
yann@1
   318
    default "DEBUG"   if LOG_DEBUG
yann@78
   319
    default "ALL"     if LOG_ALL
yann@1
   320
yann@47
   321
config LOG_SEE_TOOLS_WARN
yann@47
   322
    bool
yann@174
   323
    prompt "Warnings from the tools' builds"
yann@47
   324
    default n
yann@47
   325
    depends on ! LOG_ERROR
yann@47
   326
    help
yann@197
   327
      Treat warnings from the different tools as crosstool-NG warnings.
yann@108
   328
      If you say 'y' here, then those warnings will be prefixed with
yann@108
   329
      '[WARN ]' instead of the default '[ALL  ]'.
yann@47
   330
yann@108
   331
      You can safely say 'n' here. Those warnings will anyway be
yann@108
   332
      recorded in the log file (provided you configured one).
yann@47
   333
yann@197
   334
      Tools error will always be logged as crosstool-NG errors.
yann@174
   335
yann@1
   336
config LOG_PROGRESS_BAR
yann@1
   337
    bool
yann@1
   338
    prompt "Progress bar"
yann@173
   339
    default y
yann@78
   340
    depends on ! LOG_ALL
yann@1
   341
    help
yann@112
   342
      If you say 'y' here, you'll be able to see the elapsed time.
yann@1
   343
      
yann@112
   344
      As a bonus, you'll also get a rotating bar (/-\|) showing you
yann@112
   345
      that the build is not stalled (the bar rotates 1/4 every 10 lines
yann@112
   346
      of components build log).
yann@112
   347
yann@112
   348
      Note that the elapsed time can stall for a little while if a
yann@112
   349
      component has long commands, as the elapsed time is only updated
yann@112
   350
      each line.
yann@1
   351
yann@1
   352
config LOG_TO_FILE
yann@1
   353
    bool
yann@1
   354
    prompt "Log to a file"
yann@1
   355
    default y
yann@1
   356
    help
yann@1
   357
      Save *full* logs to a file. Even log levels you didn't specify above
yann@174
   358
      will be available in this file. The log file will be named build.log
yann@174
   359
      and stored in the toolchain prefix dir (set above).
yann@1
   360
yann@47
   361
      As a bonus, there is a script in tools/extractConfig.sh that is able
yann@47
   362
      to extract the configuration of crosstool-NG from the log file.
yann@47
   363
yann@47
   364
      Definitely, say Y.
yann@47
   365
yann@174
   366
config LOG_FILE_COMPRESS
yann@174
   367
    bool
yann@174
   368
    prompt "Compress the log file"
yann@174
   369
    default n
yann@1
   370
    depends on LOG_TO_FILE
yann@1
   371
    help
yann@174
   372
      Compress the log file once the toolchain is successfully built.
yann@1
   373
yann@1
   374
endmenu