config/global/paths.in
author Remy Bohmer <linux@bohmer.net>
Thu May 27 23:18:19 2010 +0200 (2010-05-27)
changeset 2060 51e4597b07fc
parent 1865 6a0b74b87dbd
child 2109 4a45c5758258
permissions -rw-r--r--
scripts: add option to strip all toolchain executables

To reduce filesizes of the toolchain and even improve build times
of projects to be build with this toolchain it is usefull to strip
the delivered toolchain executables. Since it is not likely that we
will debug the toolchain executables itself we do not need the
debug information inside the executables itself.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
     1 # Options related to paths and install
     2 
     3 comment "Paths"
     4 
     5 config LOCAL_TARBALLS_DIR
     6     string
     7     prompt "Local tarballs directory" if ! BACKEND
     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" if ! BACKEND
    16     depends on LOCAL_TARBALLS_DIR != "" || BACKEND
    17     default y if BACKEND
    18     default n if ! BACKEND
    19     help
    20       If you say 'y' here, new downloaded tarballs will be saved in the
    21       directory you entered above.
    22 
    23 config WORK_DIR
    24     string
    25     prompt "Working directory" if ! BACKEND
    26     default "${CT_TOP_DIR}/targets"
    27     help
    28       Set this to the directory where all build actions will be done.
    29       
    30       The default is "${CT_TOP_DIR}/targets", and leaving this option
    31       empty will also use the default.
    32       
    33       You should not need to change that, except in one very peculiar
    34       setup:
    35        - your crosstool-NG source directory is on the network
    36        - you configured crosstool-NG with --local
    37       This kind of setup is a pain, as any action involving source file
    38       access would have to go through the wire. In this case, you should
    39       set CT_WORK_DIR to point to a path local to your machine, to avoid
    40       any network overhead.
    41       
    42       Do *NOT* change it if you don't know better.
    43 
    44 config PREFIX_DIR
    45     string
    46     prompt "Prefix directory" if ! BACKEND
    47     default "${HOME}/x-tools/${CT_TARGET}"
    48     help
    49       This is the path the toolchain will run from.
    50 
    51 config INSTALL_DIR
    52     string
    53 #    prompt "Install directory"
    54     default "${CT_PREFIX_DIR}"
    55 #    help
    56 #      This is the path the toolchain will be installed into.
    57 #      
    58 #      Normally, you would set this to ${CT_PREFIX_DIR}, but if for some reasons
    59 #      you can't write there, you can install somewhere else and have a third
    60 #      person do the install for you.
    61 #      The reason you might also want to install elsewhere is if you are going
    62 #      to package your shinny new toolchain for distribution.
    63 
    64 config REMOVE_DOCS
    65     bool
    66     prompt "Remove documentation"
    67     default y
    68     help
    69       Remove the installed documentation (man and info pages).
    70       Gains around 8MiB for a uClibc-based, C and C++ compiler.
    71 
    72 config INSTALL_DIR_RO
    73     bool
    74     prompt "Render the toolchain read-only"
    75     default y
    76     help
    77       Render the directory of the toolchain (and its sub-directories)
    78       read-only.
    79       
    80       Usefull for toolchains destined for production.
    81 
    82 config STRIP_ALL_TOOLCHAIN_EXECUTABLES
    83     bool
    84     prompt "Strip all toolchain executables"
    85     default y
    86     help
    87       All build host executables contain a lot of unnecessary info.
    88       By stripping all executables it slightly speeds up the compilation
    89       of large projects.
    90       NOTE: It does NOT strip the target libraries, only HOST executables