config/arch/sh.in
author Johannes Stezenbach <js@sig21.net>
Thu Jul 29 19:30:37 2010 +0200 (2010-07-29)
changeset 2044 20dd8cef1c8a
parent 1716 6bbf206a5b57
child 2114 b1d27d43a825
permissions -rw-r--r--
scripts: remove . from $PATH

Add CT_SanitizePath function which removes entries referring to ., /tmp
and non-existing directories from $PATH, and call it early in the
build script.

If . is in PATH, gcc-4.4.4 build breaks:

[ALL ] checking what assembler to use...
/tmp/build/targets/arm-unknown-linux-uclibcgnueabi/build/gcc-core-static/arm-unknown-linux-uclibcgnueabi/bin/as
...
[ALL ] config.status: creating as

i.e. "as" is supposed to be the arm-unknown-linux-uclibcgnueabi cross assembler,
but config.status creates a local "as" script which is calling the
host assembler.

Signed-off-by: Johannes Stezenbach <js@sig21.net>
[Yann E. MORIN: style fixes + explanations]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # Super-H specific configuration file
     2 
     3 config ARCH_sh
     4     select ARCH_SUPPORTS_32
     5     select ARCH_DEFAULT_32
     6     select ARCH_USE_MMU
     7     select ARCH_SUPPORTS_BOTH_ENDIAN
     8     select ARCH_DEFAULT_LE
     9     help
    10       The Super-H architecture, as defined by:
    11         http://www.renesas.com/fmwk.jsp?cnt=superh_family_landing.jsp&fp=/products/mpumcu/superh_family/
    12 
    13 choice
    14     bool
    15     prompt "Variant"
    16 
    17 config ARCH_SH_SH3
    18     bool
    19     prompt "sh3"
    20 
    21 config ARCH_SH_SH4
    22     bool
    23     prompt "sh4"
    24 
    25 config ARCH_SH_SH4A
    26     bool
    27     prompt "sh4a"
    28 
    29 endchoice
    30 
    31 config ARCH_SH_VARIANT
    32     string
    33     default "sh3"   if ARCH_SH_SH3
    34     default "sh4"   if ARCH_SH_SH4
    35     default "sh4a"  if ARCH_SH_SH4A