config/libc/mingw.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jan 28 22:06:49 2011 +0100 (2011-01-28)
changeset 2284 7ede374110e5
child 2444 896cb0d36c1a
permissions -rw-r--r--
config: add an option not to remove the destination directory

In certain circumstances, removing the destination/installation directory
is a bad idea. For example, when the build environment is already taking
care of sanitising the build tree, and pre-installs stuff in there, it is
a very bad idea to remove the destination directory.

This happens now in buildroot, as the crostool-NG backend now installs the
toolchain in the common host-tools directory, and pre-install there a few
host-utilities (eg. host-automake and host-gawk).

Provide a config knob to turn on/off the removal of the destination
directory, defaulting to 'y' (previous behavior), and forced to 'n' when
used as a backend.

Reported-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # mingw options
     2 # depends on MINGW32
     3 
     4 config LIBC_mingw
     5     bool
     6     select LIBC_SUPPORT_WIN32THREADS
     7     help
     8       The de-facto standard for Mingw distributions.
     9 
    10 choice
    11     bool
    12     prompt "Mingw runtime version"
    13 
    14 # Don't remove next line
    15 # CT_INSERT_VERSION_BELOW
    16 config MINGWRT_V_3_18
    17     bool
    18     prompt "3.18"
    19 
    20 config MINGWRT_V_select
    21     bool
    22     prompt "Other version"
    23 
    24 endchoice
    25 
    26 config MINGWRT_VERSION
    27     string
    28     prompt "Mingw runtime version" if MINGWRT_V_select
    29 # Don't remove next line
    30 # CT_INSERT_VERSION_STRING_BELOW
    31     default "3.18" if MINGWRT_V_3_18
    32     help
    33       Enter the version number of the mingw runtime files to use
    34