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