config/global/paths.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Aug 31 12:05:52 2009 +0200 (2009-08-31)
changeset 1507 ec5314609c00
parent 753 53a577cbd9d4
child 1508 7eeeaf4bc78a
permissions -rw-r--r--
config: make selecting the patch origin a choice rather than a bool
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@1507
    89
endchoice
yann@1507
    90
yann@1507
    91
config PATCH_ORDER
yann@1507
    92
    string
yann@1507
    93
    default "bundled"           if PATCH_BUNDLED
yann@1507
    94
    default "local"             if PATCH_LOCAL
yann@1507
    95
    default "bundled,local"     if PATCH_BUNDLED_LOCAL
yann@1507
    96
yann@1507
    97
config PATCH_USE_LOCAL
yann@1507
    98
    bool
yann@1
    99
    default n
yann@1
   100
yann@1507
   101
config LOCAL_PATCH_DIR
yann@1
   102
    string
yann@1507
   103
    prompt "|  Local patch directory"
yann@1
   104
    default ""
yann@1507
   105
    depends on PATCH_USE_LOCAL
yann@1
   106
    help
yann@1
   107
      Enter the custom patch directory here.
yann@1507
   108
      
yann@1507
   109
      Note that you must ensure that the directory contianing your custom
yann@1507
   110
      patches is arranged the same way the official directory is.
yann@1
   111
yann@14
   112
config REMOVE_DOCS
yann@14
   113
    bool
yann@14
   114
    prompt "Remove documentation"
yann@753
   115
    default y
yann@14
   116
    help
yann@14
   117
      Remove the installed documentation (man and info pages).
yann@14
   118
      Gains around 8MiB for a uClibc-based, C and C++ compiler.
yann@14
   119
yann@174
   120
config INSTALL_DIR_RO
yann@174
   121
    bool
yann@174
   122
    prompt "Render the toolchain read-only"
yann@753
   123
    default y
yann@174
   124
    help
yann@174
   125
      Render the directory of the toolchain (and its sub-directories)
yann@174
   126
      read-only.
yann@174
   127
      
yann@174
   128
      Usefull for toolchains destined for production.