cc/gcc: add bugurl and compiler version to core gcc compiler
authorRemy Bohmer <linux@bohmer.net>
Fri Apr 09 21:04:33 2010 +0200 (2010-04-09)
changeset 189847710588f1b1
parent 1897 0a3b9af21490
child 1899 691adadc74db
cc/gcc: add bugurl and compiler version to core gcc compiler

When building for bare-metal the core-gcc compiler is delivered
as final compiler, so the version info and bugurl is useful
in the core compiler as well.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
scripts/build/cc/gcc.sh
     1.1 --- a/scripts/build/cc/gcc.sh	Fri Apr 09 21:04:28 2010 +0200
     1.2 +++ b/scripts/build/cc/gcc.sh	Fri Apr 09 21:04:33 2010 +0200
     1.3 @@ -132,6 +132,10 @@
     1.4              ;;
     1.5      esac
     1.6  
     1.7 +    # Bare metal delivers the core compiler as final compiler, so add version info and bugurl
     1.8 +    [ -n "${CT_CC_BUGURL}" ]     && extra_config+=("--with-bugurl=${CT_CC_BUGURL}")
     1.9 +    [ -n "${CT_CC_PKGVERSION}" ] && extra_config+=("--with-pkgversion=${CT_CC_PKGVERSION}")
    1.10 +
    1.11      if [ "${copy_headers}" = "y" ]; then
    1.12          CT_DoLog DEBUG "Copying headers to install area of bootstrap gcc, so it can build libgcc2"
    1.13          CT_DoExecLog ALL mkdir -p "${core_prefix_dir}/${CT_TARGET}/include"