cc/gcc: no need to build a static core pass-1 gcc for baremetal
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 24 19:33:04 2011 +0200 (2011-07-24)
changeset 2896d325be92e763
parent 2895 86ea5204e9ce
child 2897 8e793413baae
cc/gcc: no need to build a static core pass-1 gcc for baremetal

The only user of the static core compiler in pass-1 was the newlib
C library. Now that it is build in a later step, we do no longer
need to build a static core compiler in pass-1.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/build/cc/gcc.sh
     1.1 --- a/scripts/build/cc/gcc.sh	Sun Jul 17 18:01:28 2011 +0200
     1.2 +++ b/scripts/build/cc/gcc.sh	Sun Jul 24 19:33:04 2011 +0200
     1.3 @@ -64,14 +64,6 @@
     1.4      # In case we're not bare metal, and we're NPTL, build the static core gcc.
     1.5      # In any other case, do nothing.
     1.6      case "${CT_BARE_METAL},${CT_CANADIAN},${CT_THREADS}" in
     1.7 -        y,*,*)
     1.8 -            do_core=y
     1.9 -            core_opts+=( "mode=static" )
    1.10 -            core_opts+=( "host=${CT_HOST}" )
    1.11 -            core_opts+=( "complibs=${CT_COMPLIBS_DIR}" )
    1.12 -            core_opts+=( "prefix=${CT_CC_CORE_STATIC_PREFIX_DIR}" )
    1.13 -            core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
    1.14 -            ;;
    1.15          ,y,*)
    1.16              ;;
    1.17          ,,nptl)
    1.18 @@ -528,9 +520,6 @@
    1.19      local tmp
    1.20      local arg
    1.21  
    1.22 -    # If building for bare metal, nothing to be done here, the static core conpiler is enough!
    1.23 -    [ "${CT_BARE_METAL}" = "y" ] && return 0
    1.24 -
    1.25      CT_DoStep INFO "Installing final compiler"
    1.26  
    1.27      for arg in "$@"; do