config/global/extract.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jan 12 19:24:03 2010 +0100 (2010-01-12)
changeset 1761 88020b2c3246
parent 1510 0d601781661d
child 2225 e48654bf7e49
permissions -rw-r--r--
scripts/functions: change handling of nochdir

- 'nochdir' must be the first option
- have systematic pushd/popd, even if nochdir
     1 # Options specific to extracting packages
     2 
     3 comment "Extracting"
     4 
     5 config FORCE_EXTRACT
     6     bool
     7     prompt "Force extractions"
     8     default n
     9     help
    10       Force extraction of already exctracted tarballs.
    11       
    12       Usefull if you suspect a previous extract did not complete (eg. broken
    13       tarball), or you added a new set of patches for this component.
    14 
    15 config OVERIDE_CONFIG_GUESS_SUB
    16     bool
    17     prompt "Override config.{guess,sub}"
    18     default y
    19     help
    20       Override tools' versions of config.guess and config.sub with the ones
    21       from crosstool-NG. This means that all instances of config.guess and
    22       config.sub in gcc, binutils, glibc, etc... will be replaced.
    23 
    24       Most of the time, the versions of those scripts found in packages are old
    25       versions, thus lacking some target definitions. This is the case for
    26       uClibc-based tuples in old versions of gcc and gdb, for example.
    27 
    28       Also, doing so will guarantee that all components have the same tuples
    29       definitions for your target, and not diverging ones.
    30 
    31       You can update the ones provided with crosstool-NG by first running:
    32         ct-ng updatetools
    33       in the directory where you want to run crosstool-NG prior to the build.
    34 
    35 config ONLY_EXTRACT
    36     bool
    37     prompt "Stop after extracting tarballs"
    38     default n
    39     help
    40       Exit after unpacking and patching tarballs.
    41       
    42       Usefull to look at the code before doing the build itself.
    43 
    44 choice
    45     prompt "Patches origin"
    46     bool
    47     default PATCH_BUNDLED
    48 
    49 config PATCH_BUNDLED
    50     bool
    51     prompt "Bundled only"
    52     help
    53       Only apply patches bundled with crosstool-NG.
    54 
    55 config PATCH_LOCAL
    56     bool
    57     prompt "Local only"
    58     select PATCH_USE_LOCAL
    59     help
    60       Only apply your local patches.
    61 
    62 config PATCH_BUNDLED_LOCAL
    63     bool
    64     prompt "Bundled, then local"
    65     select PATCH_USE_LOCAL
    66     help
    67       Apply the patches bundled with crosstool-NG,
    68       then apply your local patches.
    69 
    70 config PATCH_LOCAL_BUNDLED
    71     bool
    72     prompt "Local, then bundled"
    73     select PATCH_USE_LOCAL
    74     help
    75       Apply your local patches, then apply the patches
    76       bundled with crosstool-NG.
    77 
    78 config PATCH_BUNDLED_FALLBACK_LOCAL
    79     bool
    80     prompt "Bundled only, local if no bundled"
    81     select PATCH_USE_LOCAL
    82     select PATCH_SINGLE
    83     help
    84       Apply the patches bundled with crosstool-NG;
    85       if there's no bundled patches, apply your local patches.
    86 
    87 config PATCH_LOCAL_FALLBACK_BUNDLED
    88     bool
    89     prompt "Local only, bundled if no local"
    90     select PATCH_USE_LOCAL
    91     select PATCH_SINGLE
    92     help
    93       Only apply your local patches;
    94       if there's no local patches, apply patches bundled with crosstool-NG.
    95 
    96 config PATCH_NONE
    97     bool
    98     prompt "None"
    99     help
   100       Don't use any patch at all.
   101       
   102       Please be carefull if you select this. Most components do require
   103       patches to properly build. It can happen, however, that support for
   104       your architecture is clean enough that you can build a toolchain
   105       with no patch. But most probably, this is *not* the case.
   106       
   107       Be safe, use (the bundeld) patches.
   108 
   109 endchoice
   110 
   111 config PATCH_ORDER
   112     string
   113     default "bundled"           if PATCH_BUNDLED
   114     default "local"             if PATCH_LOCAL
   115     default "bundled,local"     if PATCH_BUNDLED_LOCAL
   116     default "local,bundled"     if PATCH_LOCAL_BUNDLED
   117     default "none"              if PATCH_NONE
   118 
   119 config PATCH_SINGLE
   120     bool
   121     default n
   122 
   123 config PATCH_USE_LOCAL
   124     bool
   125     default n
   126 
   127 config LOCAL_PATCH_DIR
   128     string
   129     prompt "|  Local patch directory"
   130     default ""
   131     depends on PATCH_USE_LOCAL
   132     help
   133       Enter the custom patch directory here.
   134       
   135       Note that you must ensure that the directory contianing your custom
   136       patches is arranged the same way the official directory is.