config/debug/strace.in
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Wed Jun 08 15:47:43 2011 +0200 (2011-06-08)
changeset 2508 9e2761e59a75
parent 2006 f15068f8ae3b
child 2733 3362c64f4b6c
permissions -rw-r--r--
debug/cross-gdb: check host dependencies

Cross-gdb depends on expat and python. If either is missing, cross-gdb will
build successfully, but lacking some features.

Especially, if expat is missing, cross-gdb will be unable to parse the target
description, which may lead to runtime malfunctions and the following GDB
warning:
"Can not parse XML target description; XML support was disabled at compile time"

Hence, expat should be considered mandatory.

On the other hand, the features missing without python are not critical, so
python should not be considered mandatory.

This patch does the following:
- At configure time, warn the user if either expat or python is missing.
- In menuconfig, disable the static build options regarding cross-gdb if no
static version of expat is available, and disable cross-gdb if expat is
missing.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
[yann.morin.1998@anciens.enib.fr: add comment for impossible static cross-gdb]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # strace
     2 
     3 ## depends on ! BACKEND
     4 
     5 choice
     6     bool
     7     prompt "strace version"
     8 # Don't remove next line
     9 # CT_INSERT_VERSION_BELOW
    10 
    11 config STRACE_V_4_5_20
    12     bool
    13     prompt "4.5.20 (EXPERIMENTAL)"
    14     depends on EXPERIMENTAL
    15 
    16 config STRACE_V_4_5_19
    17     bool
    18     prompt "4.5.19"
    19 
    20 config STRACE_V_4_5_18
    21     bool
    22     prompt "4.5.18"
    23 
    24 config STRACE_V_4_5_17
    25     bool
    26     prompt "4.5.17 (OBSOLETE)"
    27     depends on OBSOLETE
    28 
    29 config STRACE_V_4_5_16
    30     bool
    31     prompt "4.5.16 (OBSOLETE)"
    32     depends on OBSOLETE
    33 
    34 config STRACE_V_4_5_15
    35     bool
    36     prompt "4.5.15 (OBSOLETE)"
    37     depends on OBSOLETE
    38 
    39 endchoice
    40 
    41 config STRACE_VERSION
    42     string
    43 # Don't remove next line
    44 # CT_INSERT_VERSION_STRING_BELOW
    45     default "4.5.20" if STRACE_V_4_5_20
    46     default "4.5.19" if STRACE_V_4_5_19
    47     default "4.5.18" if STRACE_V_4_5_18
    48     default "4.5.17" if STRACE_V_4_5_17
    49     default "4.5.16" if STRACE_V_4_5_16
    50     default "4.5.15" if STRACE_V_4_5_15