config/debug/gdb.in.native
author Bart vdr Meulen <bartvdrmeulen@gmail.com>
Sun Jul 11 21:36:20 2010 +0200 (2010-07-11)
changeset 2017 f637b6c2162b
parent 1849 73f76483a389
child 2098 9a8f0e3fe605
permissions -rw-r--r--
kernel: add mingw

Add the option to build a cross-compiler for kernel type 'mingw'.
The resulting cross-compiler can be used to build applications on a Linux host
that can be run on a Windows target.

Compiler is build using the mingwrt and w32-api packages aviable from the
MinGW project (http://sourceforge.net/projects/mingw).

The windows headers (w32-api package) are extracting with the kernel_headers
step The libraries and other headers from both packages are build and
installed in the various steps of libc

Signed-off-by: Bart vdr Meulen <bartvdrmeulen@gmail.com>
[yann.morin.1998@anciens.enib.fr: fix kernel headers comment, don't "return 0"]
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_USE_GMP_MPFR
    15     bool
    16     prompt "Use GMP and MPFR"
    17     default n
    18     select GMP_TARGET
    19     select MPFR_TARGET
    20     select GDB_NATIVE_NO_STATIC
    21     help
    22       gdb can make use of the GMP and MPFR libraries.
    23       
    24       While the cross-gdb (above) can use the libraries compiled for the
    25       host, the native gdb needs the libraries for the target (where it will
    26       eventually run).
    27       
    28       Setting this option will force building the GMP and MPFR libraries for
    29       the target, and configure the native gdb to use them.
    30 
    31 config GDB_NATIVE_NO_STATIC
    32     bool
    33     default n
    34 
    35 config GDB_NATIVE_STATIC
    36     bool
    37     prompt "Build a static native gdb"
    38     depends on ! GDB_NATIVE_NO_STATIC
    39     default n
    40     help
    41       In case you have trouble with dynamic loading of shared libraries,
    42       you will find that a static gdb comes in handy.
    43 
    44 endif # GDB_NATIVE