config/global/paths.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Aug 31 12:47:58 2009 +0200 (2009-08-31)
changeset 1509 f79fcf38ec21
parent 1508 7eeeaf4bc78a
child 1510 0d601781661d
permissions -rw-r--r--
config: add fallback to patch order

Add the possibility to fallback to either bundled or local patches
if local or bundled are missing.
yann@445
     1
# Options related to paths and install
yann@1
     2
yann@1
     3
comment "Paths"
yann@1
     4
yann@85
     5
config LOCAL_TARBALLS_DIR
yann@1
     6
    string
yann@85
     7
    prompt "Local tarballs directory"
yann@85
     8
    default ""
yann@1
     9
    help
yann@85
    10
      If you have previously downloaded the tarballs, enter the PATH where
yann@85
    11
      you stored them here.
yann@31
    12
yann@265
    13
config SAVE_TARBALLS
yann@265
    14
    bool
yann@265
    15
    prompt "Save new tarballs"
yann@265
    16
    default n
yann@265
    17
    depends on LOCAL_TARBALLS_DIR != ""
yann@265
    18
    help
yann@425
    19
      If you say 'y' here, new downloaded tarballs will be saved in the
yann@265
    20
      directory you entered above.
yann@265
    21
yann@610
    22
config WORK_DIR
yann@610
    23
    string
yann@610
    24
    prompt "Working directory"
yann@610
    25
    default "${CT_TOP_DIR}/targets"
yann@610
    26
    help
yann@610
    27
      Set this to the directory where all build actions will be done.
yann@610
    28
      
yann@610
    29
      The default is "${CT_TOP_DIR}/targets", and leaving this option
yann@610
    30
      empty will also use the default.
yann@610
    31
      
yann@610
    32
      You should not need to change that, except in one very peculiar
yann@610
    33
      setup:
yann@610
    34
       - your crosstool-NG source directory is on the network
yann@610
    35
       - you configured crosstool-NG with --local
yann@610
    36
      This kind of setup is a pain, as any action involving source file
yann@610
    37
      access would have to go through the wire. In this case, you should
yann@610
    38
      set CT_WORK_DIR to point to a path local to your machine, to avoid
yann@610
    39
      any network overhead.
yann@610
    40
      
yann@610
    41
      Do *NOT* change it if you don't know better.
yann@610
    42
yann@1
    43
config PREFIX_DIR
yann@1
    44
    string
yann@1
    45
    prompt "Prefix directory"
yann@613
    46
    default "${HOME}/x-tools/${CT_TARGET}"
yann@1
    47
    help
yann@1
    48
      This is the path the toolchain will run from.
yann@1
    49
yann@1
    50
config INSTALL_DIR
yann@1
    51
    string
yann@1
    52
#    prompt "Install directory"
yann@1
    53
    default "${CT_PREFIX_DIR}"
yann@1
    54
#    help
yann@610
    55
#      This is the path the toolchain will be installed into.
yann@1
    56
#      
yann@1
    57
#      Normally, you would set this to ${CT_PREFIX_DIR}, but if for some reasons
yann@1
    58
#      you can't write there, you can install somewhere else and have a third
yann@1
    59
#      person do the install for you.
yann@1
    60
#      The reason you might also want to install elsewhere is if you are going
yann@1
    61
#      to package your shinny new toolchain for distribution.
yann@1
    62
yann@1507
    63
choice
yann@1507
    64
    prompt "Patches origin"
yann@1
    65
    bool
yann@1507
    66
    default PATCH_BUNDLED
yann@1507
    67
yann@1507
    68
config PATCH_BUNDLED
yann@1507
    69
    bool
yann@1507
    70
    prompt "Bundled only"
yann@1507
    71
    help
yann@1507
    72
      Only apply patches bundled with crosstool-NG.
yann@1507
    73
yann@1507
    74
config PATCH_LOCAL
yann@1507
    75
    bool
yann@1507
    76
    prompt "Local only"
yann@1507
    77
    select PATCH_USE_LOCAL
yann@1507
    78
    help
yann@1507
    79
      Only apply your local patches.
yann@1507
    80
yann@1507
    81
config PATCH_BUNDLED_LOCAL
yann@1507
    82
    bool
yann@1507
    83
    prompt "Bundled, then local"
yann@1507
    84
    select PATCH_USE_LOCAL
yann@1507
    85
    help
yann@1507
    86
      Apply the patches bundled with crosstool-NG,
yann@1507
    87
      then apply your local patches.
yann@1507
    88
yann@1508
    89
config PATCH_LOCAL_BUNDLED
yann@1508
    90
    bool
yann@1508
    91
    prompt "Local, then bundled"
yann@1508
    92
    select PATCH_USE_LOCAL
yann@1508
    93
    help
yann@1508
    94
      Apply your local patches, then apply the patches
yann@1508
    95
      bundled with crosstool-NG.
yann@1508
    96
yann@1509
    97
config PATCH_BUNDLED_FALLBACK_LOCAL
yann@1509
    98
    bool
yann@1509
    99
    prompt "Bundled only, local if no bundled"
yann@1509
   100
    select PATCH_USE_LOCAL
yann@1509
   101
    select PATCH_SINGLE
yann@1509
   102
    help
yann@1509
   103
      Apply the patches bundled with crosstool-NG;
yann@1509
   104
      if there's no bundled patches, apply your local patches.
yann@1509
   105
yann@1509
   106
config PATCH_LOCAL_FALLBACK_BUNDLED
yann@1509
   107
    bool
yann@1509
   108
    prompt "Local only, bundled if no local"
yann@1509
   109
    select PATCH_USE_LOCAL
yann@1509
   110
    select PATCH_SINGLE
yann@1509
   111
    help
yann@1509
   112
      Only apply your local patches;
yann@1509
   113
      if there's no local patches, apply patches bundled with crosstool-NG.
yann@1509
   114
yann@1507
   115
endchoice
yann@1507
   116
yann@1507
   117
config PATCH_ORDER
yann@1507
   118
    string
yann@1507
   119
    default "bundled"           if PATCH_BUNDLED
yann@1507
   120
    default "local"             if PATCH_LOCAL
yann@1507
   121
    default "bundled,local"     if PATCH_BUNDLED_LOCAL
yann@1508
   122
    default "local,bundled"     if PATCH_LOCAL_BUNDLED
yann@1507
   123
yann@1509
   124
config PATCH_SINGLE
yann@1509
   125
    bool
yann@1509
   126
    default n
yann@1509
   127
yann@1507
   128
config PATCH_USE_LOCAL
yann@1507
   129
    bool
yann@1
   130
    default n
yann@1
   131
yann@1507
   132
config LOCAL_PATCH_DIR
yann@1
   133
    string
yann@1507
   134
    prompt "|  Local patch directory"
yann@1
   135
    default ""
yann@1507
   136
    depends on PATCH_USE_LOCAL
yann@1
   137
    help
yann@1
   138
      Enter the custom patch directory here.
yann@1507
   139
      
yann@1507
   140
      Note that you must ensure that the directory contianing your custom
yann@1507
   141
      patches is arranged the same way the official directory is.
yann@1
   142
yann@14
   143
config REMOVE_DOCS
yann@14
   144
    bool
yann@14
   145
    prompt "Remove documentation"
yann@753
   146
    default y
yann@14
   147
    help
yann@14
   148
      Remove the installed documentation (man and info pages).
yann@14
   149
      Gains around 8MiB for a uClibc-based, C and C++ compiler.
yann@14
   150
yann@174
   151
config INSTALL_DIR_RO
yann@174
   152
    bool
yann@174
   153
    prompt "Render the toolchain read-only"
yann@753
   154
    default y
yann@174
   155
    help
yann@174
   156
      Render the directory of the toolchain (and its sub-directories)
yann@174
   157
      read-only.
yann@174
   158
      
yann@174
   159
      Usefull for toolchains destined for production.