config/global/extract.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 17 17:54:21 2011 +0200 (2011-07-17)
changeset 2888 dd71df95903a
parent 2484 d1a8c2ae7946
permissions -rw-r--r--
cc/gcc: pass the companion libs prefix to cc_core

In case of canadian-cross, the companion libraries are not the same for
the core cc (they run on 'build') as they are for the final cc (they run
on 'host').

Prepare for this differentiation (coming later), while retaining the
current behavior (to use the same compblibs).

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