config/arch/powerpc.in.2
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Thu Jul 28 22:09:31 2011 +0200 (2011-07-28)
changeset 2573 424fa2092ace
parent 2467 200836977ce6
child 2675 7c288c777455
permissions -rw-r--r--
scripts/libc: do not build add-ons by default

Currently, no --enable-add-ons option is passed to libc configure when
"$(do_libc_add_ons_list ,)" is empty, which makes configure automatically search
for present add-ons. In that case, all present add-ons are built, although
no add-on was selected by the user in the config. Moreover, this can make the
configure fail if some non-standard add-ons like eglibc-localedef are present.

This behavior also leads to an inconsistency from a user point of view between
the following cases:
- LIBC_ADDONS_LIST="", LIBC_GLIBC_USE_PORTS=n and THREADS="none" in the config,
which makes "$(do_libc_add_ons_list ,)" return "", so all present add-ons
are built.
- LIBC_ADDONS_LIST="", LIBC_GLIBC_USE_PORTS=n and THREADS!="none" in the
config, which makes "$(do_libc_add_ons_list ,)" return the add-on supporting
the chosen threading implementation, e.g. "nptl", so only this add-on is
built.

This patch disables the building of all add-ons in that case.

It is still possible to build all present add-ons by adding --enable-add-ons to
LIBC_GLIBC_EXTRA_CONFIG_ARRAY.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
yann@520
     1
# powerpc specific configuration file
yann@628
     2
yann@1634
     3
config ARCH_POWERPC_SPE
yann@1634
     4
    bool
yann@1634
     5
    prompt "Enable SPE support"
yann@1634
     6
    help
yann@1634
     7
      Add support for the Signal Processing Engine.  This will set up
yann@1634
     8
      the toolchain so that it supports the SPE ABI extensions. This
yann@1634
     9
      mainly targets Freescale e500 processors.
yann@1634
    10
      
yann@1634
    11
      Setting this option will append "spe" to the end of your target
yann@1634
    12
      tuple name (e.g., powerpc-e500v2-linux-gnuspe) so that the gcc
yann@2467
    13
      configure/build system will know to include SPE ABI support. It
yann@2467
    14
      will also automatically add "-mabi=spe -mspe" to your TARGET_CFLAGS,
yann@2467
    15
      and "--enable-e500_double" to your CC_EXTRA_CONFIG_ARRAY, so you
yann@2467
    16
      do not need to explicitly add them.