From 6552935ee7ef4f267d71cce90b1c848cb9800f32 Mon Sep 17 00:00:00 2001 From: Robert Paal Date: Thu, 28 Nov 2013 13:49:01 +0100 Subject: 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. --- xcomp/erl-xcomp-powerpc-ose5.conf | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) (limited to 'xcomp') 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" -- cgit v1.2.3