config/arch/powerpc.in.2
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Wed Jun 08 15:47:43 2011 +0200 (2011-06-08)
changeset 2508 9e2761e59a75
parent 2467 200836977ce6
child 2675 7c288c777455
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 # powerpc specific configuration file
     2 
     3 config ARCH_POWERPC_SPE
     4     bool
     5     prompt "Enable SPE support"
     6     help
     7       Add support for the Signal Processing Engine.  This will set up
     8       the toolchain so that it supports the SPE ABI extensions. This
     9       mainly targets Freescale e500 processors.
    10       
    11       Setting this option will append "spe" to the end of your target
    12       tuple name (e.g., powerpc-e500v2-linux-gnuspe) so that the gcc
    13       configure/build system will know to include SPE ABI support. It
    14       will also automatically add "-mabi=spe -mspe" to your TARGET_CFLAGS,
    15       and "--enable-e500_double" to your CC_EXTRA_CONFIG_ARRAY, so you
    16       do not need to explicitly add them.