summaryrefslogtreecommitdiff
path: root/scripts/build/cc
diff options
context:
space:
mode:
authorRemy Bohmer <linux@bohmer.net>2010-04-09 19:04:33 (GMT)
committerRemy Bohmer <linux@bohmer.net>2010-04-09 19:04:33 (GMT)
commit9ccad74f0240bf13c932df1470cf255f454656a0 (patch)
treefe132bdfb87fb72f76cb7b100304139500c4acad /scripts/build/cc
parent820f877df075ff7d4d5d7db325b8791b4192f651 (diff)
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>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r--scripts/build/cc/gcc.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 0f90284..96324f4 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -132,6 +132,10 @@ do_cc_core() {
;;
esac
+ # Bare metal delivers the core compiler as final compiler, so add version info and bugurl
+ [ -n "${CT_CC_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_CC_BUGURL}")
+ [ -n "${CT_CC_PKGVERSION}" ] && extra_config+=("--with-pkgversion=${CT_CC_PKGVERSION}")
+
if [ "${copy_headers}" = "y" ]; then
CT_DoLog DEBUG "Copying headers to install area of bootstrap gcc, so it can build libgcc2"
CT_DoExecLog ALL mkdir -p "${core_prefix_dir}/${CT_TARGET}/include"