config/debug/gdb.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
parent 1899 691adadc74db
child 2303 88871c8621b8
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 # GDB menu
     2 
     3 config DEBUG_gdb
     4     help
     5       Enable gdb for the target
     6 
     7 source "config/debug/gdb.in.cross"
     8 source "config/debug/gdb.in.native"
     9 source "config/debug/gdb.in.gdbserver"
    10 
    11 choice
    12     bool
    13     prompt "gdb version"
    14     depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
    15 # Don't remove next line
    16 # CT_INSERT_VERSION_BELOW
    17 
    18 config GDB_V_7_2
    19     bool
    20     prompt "7.2 (EXPERIMENTAL)"
    21     depends on EXPERIMENTAL
    22     select GDB_7_0_or_later
    23 
    24 config GDB_V_7_1
    25     bool
    26     prompt "7.1 (EXPERIMENTAL)"
    27     depends on EXPERIMENTAL
    28     select GDB_7_0_or_later
    29 
    30 config GDB_V_7_0_1
    31     bool
    32     prompt "7.0.1 (EXPERIMENTAL)"
    33     depends on EXPERIMENTAL
    34     select GDB_7_0_or_later
    35 
    36 config GDB_V_7_0
    37     bool
    38     prompt "7.0 (EXPERIMENTAL)"
    39     depends on EXPERIMENTAL
    40     select GDB_7_0_or_later
    41 
    42 config GDB_V_6_8
    43     bool
    44     prompt "6.8"
    45 
    46 endchoice
    47 
    48 config GDB_7_0_or_later
    49     bool
    50 
    51 config GDB_VERSION
    52     string
    53 # Don't remove next line
    54 # CT_INSERT_VERSION_STRING_BELOW
    55     default "7.2" if GDB_V_7_2
    56     default "7.1" if GDB_V_7_1
    57     default "7.0.1" if GDB_V_7_0_1
    58     default "7.0" if GDB_V_7_0
    59     default "6.8" if GDB_V_6_8