[Lunar-commits] r18967 - in moonbase/trunk: compilers/gcc/plugin.d zbeta/gcc4/plugin.d
Auke Kok
sofar at lunar-linux.org
Wed Mar 1 16:18:40 UTC 2006
Author: sofar
Date: 2006-03-01 16:18:35 +0000 (Wed, 01 Mar 2006)
New Revision: 18967
Modified:
moonbase/trunk/compilers/gcc/plugin.d/optimize-gcc_3_4.plugin
moonbase/trunk/zbeta/gcc4/plugin.d/optimize-gcc_4_0.plugin
Log:
Remove the $BUILD code as we set this globally it makes no sense to change it. This will allow us to uniformly name tarballs xxxx-$BUILD.tar.bz2 and forget about it too.
Modified: moonbase/trunk/compilers/gcc/plugin.d/optimize-gcc_3_4.plugin
===================================================================
--- moonbase/trunk/compilers/gcc/plugin.d/optimize-gcc_3_4.plugin 2006-03-01 16:03:38 UTC (rev 18966)
+++ moonbase/trunk/compilers/gcc/plugin.d/optimize-gcc_3_4.plugin 2006-03-01 16:18:35 UTC (rev 18967)
@@ -44,39 +44,6 @@
Fastest) c_cxx_flags_add "-O3" ;;
esac
- # BUILD subarchitecture target
- case $PLATFORM in
- x86)
- case $CPU in
- I386) BUILD="i386-pc-linux-gnu" ;;
- I486) BUILD="i486-pc-linux-gnu" ;;
- I586|Pentium|Pentiummmx|k6|k62|k63)
- BUILD="i586-pc-linux-gnu"
- ;;
- # note wildcard - assume above items is a complete list
- *) BUILD="i686-pc-linux-gnu" ;;
- esac
- ;;
- PowerPC)
- case $CPU in
- common|rios|rios1|rios2|rsc|power|power2)
- BUILD="power-linux"
- ;;
- rs64a|620) BUILD="powerpc64-linux" ;;
- *) BUILD="powerpc-linux" ;;
- esac
- ;;
- Alpha)
- BUILD="alpha-linux"
- ;;
- SPARC)
- BUILD="sparc-linux"
- ;;
- x86_64)
- BUILD="x86_64-pc-linux-gnu"
- ;;
- esac
-
# CFLAGS -march cpu-specific optimization
if [ -n "$CPU" ]; then
c_cxx_flags_add "-march=$CPU"
@@ -148,12 +115,10 @@
CXX=g++
CPP=cpp
- export BUILD
export COPT CCOPT
export CFLAGS CXXFLAGS CPPFLAGS
export CC CXX CPP
- verbose_msg "BUILD=\"$BUILD\""
verbose_msg "CC=\"$CC\""
verbose_msg "CXX=\"$CXX\""
verbose_msg "CPP=\"$CPP\""
@@ -205,7 +170,7 @@
{
debug_msg "save_optimizations($@)"
cat >/etc/lunar/local/optimizations.GCC_3_4 <<EOF
-BUILD=$BUILD
+PLATFORM=$PLATFORM
CPU=$CPU
BOPT=$BOPT
SPD=( $(echo ${SPD[@]} ) )
@@ -242,6 +207,9 @@
echo "Turn off optimization safety [$SAFE_OPTIMIZATIONS]"
echo "Allow potentially unsafe optimizations (DANGEROUS!)"
fi
+ echo "platform"
+ echo "Platform choice [$PLATFORM]"
+ echo "Select the specific architecture like x87, ppc"
echo "bopt"
echo "Base speed optimization [$BOPT]"
echo "Select the base optimization from -Os, -O0, -O1 etc"
@@ -292,6 +260,17 @@
fi
fi
;;
+ platform)
+ OPTIONS=(
+ "x86" "Intel, AMD, and clones" $( [ "$PLATFORM" == "x86" ] && echo "on" || echo "off" ) "Intel and AMD hardware"
+ "x86_64" "AMD64/EM64T" $( [ "$PLATFORM" == "x86_64" ] && echo "on" || echo "off" ) "Both AMD64 and Intel EM64T machines"
+ "Alpha" "Compaq Alpha" $( [ "$PLATFORM" == "Alpha" ] && echo "on" || echo "off" ) "Compaq Alpha hardware"
+ "PowerPC" "PowerPC" $( [ "$PLATFORM" == "PowerPC" ] && echo "on" || echo "off" ) "IBM and Apple hardware (Power and PowerPC)"
+ "SPARC" "Sun SPARC" $( [ "$PLATFORM" == "SPARC" ] && echo "on" || echo "off" ) "SUN Hardware"
+ )
+ menu radiolist "The so-called platform is the name of the hardware architecture. Most people will use x86" &&
+ PLATFORM=$RESULT
+ ;;
bopt)
OPTIONS=(
"None" "-O0" $( [ "$BOPT" == "None" ] && echo "on" || echo "off" ) "Only default optimizations"
Modified: moonbase/trunk/zbeta/gcc4/plugin.d/optimize-gcc_4_0.plugin
===================================================================
--- moonbase/trunk/zbeta/gcc4/plugin.d/optimize-gcc_4_0.plugin 2006-03-01 16:03:38 UTC (rev 18966)
+++ moonbase/trunk/zbeta/gcc4/plugin.d/optimize-gcc_4_0.plugin 2006-03-01 16:18:35 UTC (rev 18967)
@@ -44,39 +44,6 @@
Fastest) c_cxx_flags_add "-O3" ;;
esac
- # BUILD subarchitecture target
- case $PLATFORM in
- x86)
- case $CPU in
- I386) BUILD="i386-pc-linux-gnu" ;;
- I486) BUILD="i486-pc-linux-gnu" ;;
- I586|Pentium|Pentiummmx|k6|k62|k63)
- BUILD="i586-pc-linux-gnu"
- ;;
- # note wildcard - assume above items is a complete list
- *) BUILD="i686-pc-linux-gnu" ;;
- esac
- ;;
- PowerPC)
- case $CPU in
- common|rios|rios1|rios2|rsc|power|power2)
- BUILD="power-linux"
- ;;
- rs64a|620) BUILD="powerpc64-linux" ;;
- *) BUILD="powerpc-linux" ;;
- esac
- ;;
- Alpha)
- BUILD="alpha-linux"
- ;;
- SPARC)
- BUILD="sparc-linux"
- ;;
- x86_64)
- BUILD="x86_64-pc-linux-gnu"
- ;;
- esac
-
# CFLAGS -march cpu-specific optimization
if [ -n "$CPU" ]; then
c_cxx_flags_add "-march=$CPU"
@@ -150,13 +117,11 @@
CXX=g++
CPP=$COMPILER_PATH/cpp
- export BUILD
export COMPILER_PATH
export COPT CCOPT
export CFLAGS CXXFLAGS CPPFLAGS
export CC CXX CPP
- verbose_msg "BUILD=\"$BUILD\""
verbose_msg "COMPILER_PATH=\"$COMPILER_PATH\""
verbose_msg "CC=\"$CC\""
verbose_msg "CXX=\"$CXX\""
@@ -209,7 +174,6 @@
{
debug_msg "save_optimizations($@)"
cat >/etc/lunar/local/optimizations.GCC_4_0 <<EOF
-BUILD=$BUILD
CPU=$CPU
BOPT=$BOPT
SPD=( $(echo ${SPD[@]} ) )
More information about the Lunar-commits
mailing list