aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Paal <[email protected]>2013-11-28 13:49:01 +0100
committerLukas Larsson <[email protected]>2014-02-24 15:16:02 +0100
commit6552935ee7ef4f267d71cce90b1c848cb9800f32 (patch)
treed9fae94b08c5ca6eb63d645b84c6f4cea47417ca
parent2145db903b665622ea885db175c5e606d9f840a4 (diff)
downloadotp-6552935ee7ef4f267d71cce90b1c848cb9800f32.tar.gz
otp-6552935ee7ef4f267d71cce90b1c848cb9800f32.tar.bz2
otp-6552935ee7ef4f267d71cce90b1c848cb9800f32.zip
ose: Add xcomp env variables to OSE xcomp
Use these to switch inbetween debug and non-debug emulators and 4.4.3 and 4.6.3 versions of gcc.
-rw-r--r--xcomp/erl-xcomp-powerpc-ose5.conf31
1 files changed, 26 insertions, 5 deletions
diff --git a/xcomp/erl-xcomp-powerpc-ose5.conf b/xcomp/erl-xcomp-powerpc-ose5.conf
index 03e3b81e64..6cf4b2f9fb 100644
--- a/xcomp/erl-xcomp-powerpc-ose5.conf
+++ b/xcomp/erl-xcomp-powerpc-ose5.conf
@@ -36,9 +36,30 @@
## -- Variables needed for an OSE5 build ---------------------------------------
OSEROOT="/vobs/ose5/system"
HOST="linux"
-GCCVERSION="4.6.3"
+
+GCCVERSION="4.4.3"
GCCROOT="${OSEROOT}/gcc_linux_powerpc_${GCCVERSION}"
-GCCTARGET="powerpc-ose-eabi"
+
+OSEDEBUG="yes"
+
+case ${GCCVERSION} in
+4.4.3)
+ GCCTARGET="powerpc-eabi"
+ ;;
+4.6.3)
+ GCCTARGET="powerpc-ose-eabi"
+ ;;
+*)
+ echo "Error: Unknown GCCVERSION: ${GCCVERSION}"
+ exit 1
+esac
+
+if [ ${OSEDEBUG} != "yes" ];
+then
+OPT_LEVEL="-O2"
+else
+OPT_LEVEL=""
+fi
## -- Variables for `otp_build' Only -------------------------------------------
@@ -80,7 +101,7 @@ erl_xcomp_configure_flags="--disable-kernel-poll --disable-hipe --without-termca
CC="$GCCROOT/bin/$GCCTARGET-gcc"
# * `CFLAGS' - C compiler flags.
-CFLAGS="-msoft-float -g -fno-strict-aliasing -fno-builtin -fshort-wchar -Wall -Wno-unknown-pragmas -mpowerpc -nostdlib -I$GCCROOT/include/c++/$GCCVERSION -I$OSEROOT/include -I$OSEROOT/include/ose_spi -I$OSEROOT/include/gcc -MD -MP -D__OSE__ -DBIG_ENDIAN -DCF_CONF_SIZE=0x800 -O2"
+CFLAGS="-msoft-float -g -fno-strict-aliasing -fno-builtin -fshort-wchar -Wall -Wno-unknown-pragmas -mpowerpc -nostdlib -I$GCCROOT/include/c++/$GCCVERSION -I$OSEROOT/include -I$OSEROOT/include/ose_spi -I$OSEROOT/include/gcc -MD -MP -D__OSE__ -DBIG_ENDIAN -DCF_CONF_SIZE=0x800 ${OPT_LEVEL}"
# * `STATIC_CFLAGS' - Static C compiler flags.
@@ -95,14 +116,14 @@ CFLAGS="-msoft-float -g -fno-strict-aliasing -fno-builtin -fshort-wchar -Wall -W
CPP="$GCCROOT/bin/$GCCTARGET-cpp"
# * `CPPFLAGS' - C pre-processor flags.
-CPPFLAGS="-msoft-float -g -fno-strict-aliasing -fno-builtin -fshort-wchar -Wall -Wno-unknown-pragmas -mpowerpc -nostdlib -I$GCCROOT/include/c++/$GCCVERSION -I$OSEROOT/include -I$OSEROOT/include/ose_spi -I$OSEROOT/include/gcc -MD -MP -D__OSE__ -DBIG_ENDIAN -DCF_CONF_SIZE=0x800 -O2"
+CPPFLAGS="-msoft-float -g -fno-strict-aliasing -fno-builtin -fshort-wchar -Wall -Wno-unknown-pragmas -mpowerpc -nostdlib -I$GCCROOT/include/c++/$GCCVERSION -I$OSEROOT/include -I$OSEROOT/include/ose_spi -I$OSEROOT/include/gcc -MD -MP -D__OSE__ -DBIG_ENDIAN -DCF_CONF_SIZE=0x800 ${OPT_LEVEL}"
# * `CXX' - C++ compiler.
CXX="$GCCROOT/bin/$GCCTARGET-g++"
# * `CXXFLAGS' - C++ compiler flags.
-CXXFLAGS="-msoft-float -g -fno-strict-aliasing -ansi -I$GCCROOT/include/c++/$GCCVERSION -I$OSEROOT/include -I$OSEROOT/include/gcc -O2"
+CXXFLAGS="-msoft-float -g -fno-strict-aliasing -ansi -I$GCCROOT/include/c++/$GCCVERSION -I$OSEROOT/include -I$OSEROOT/include/gcc ${OPT_LEVEL}"
# * `LD' - Linker.
LD="${GCCROOT}/bin/${GCCTARGET}-ld"