config/debug/gdb.in.gdbserver
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 1844 4d6a56579d9d
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 gdbserver
     2 
     3 config GDB_GDBSERVER
     4     bool
     5     prompt "gdbserver"
     6     default n
     7     depends on ! BARE_METAL
     8     help
     9       Build and install a gdbserver for the target, to run on the target.
    10 
    11 if GDB_GDBSERVER
    12 
    13 config GDB_GDBSERVER_STATIC
    14     bool
    15     prompt "Build a static gdbserver"
    16     default y
    17     help
    18       In case you have trouble with dynamic loading of shared libraries,
    19       you will find that a static gdbserver comes in handy.
    20 
    21 endif # GDB_GDBSERVER
    22 
    23 if BARE_METAL
    24 comment "In bare-metal, you'll need to   "
    25 comment "provide your own gdbserver stub."
    26 endif # BARE_METAL