config/debug/gdb.in.native
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 1850 136a929ec37f
child 2484 d1a8c2ae7946
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 # Menu for the native GDB
     2 
     3 config GDB_NATIVE
     4     bool
     5     prompt "Native gdb"
     6     default n
     7     depends on ! BARE_METAL
     8     depends on ! BACKEND
     9     help
    10       Build and install a native gdb for the target, to run on the target.
    11 
    12 if GDB_NATIVE
    13 
    14 config GDB_NATIVE_NO_STATIC
    15     bool
    16     default n
    17 
    18 config GDB_NATIVE_STATIC
    19     bool
    20     prompt "Build a static native gdb"
    21     depends on ! GDB_NATIVE_NO_STATIC
    22     default n
    23     help
    24       In case you have trouble with dynamic loading of shared libraries,
    25       you will find that a static gdb comes in handy.
    26 
    27 endif # GDB_NATIVE