Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 17 years ago
parent
commit
e5c18e376a
9 changed files with 66 additions and 50 deletions
  1. +2
    -1
      architecture/alpha/gcc-options
  2. +3
    -3
      architecture/arm/config.in
  3. +7
    -5
      architecture/arm/gcc-options
  4. +4
    -3
      architecture/hppa/gcc-options
  5. +12
    -4
      architecture/mips/config.in
  6. +5
    -2
      architecture/mips/gcc-options
  7. +3
    -2
      architecture/powerpc/gcc-options
  8. +4
    -3
      architecture/sparc/gcc-options
  9. +26
    -27
      architecture/x86/gcc-options

+ 2
- 1
architecture/alpha/gcc-options

@ -1,5 +1,6 @@
if [ $ROCKCFG_ALPHA_OPT != generic ] ; then
var_append GCC3_WRAPPER_INSERT " " \
# Append options so the gcc -V option always comes first.
var_append GCC3_WRAPPER_APPEND " " \
"-mtune=$ROCKCFG_ALPHA_OPT"
fi

+ 3
- 3
architecture/arm/config.in

@ -61,13 +61,13 @@ choice ROCKCFG_ARM_OPT generic \
arm9e "arm9e CPU" \
arm920 "arm920 CPU" \
arm920t "arm920t CPU" \
arm926ejs "arm926ejs CPU" \
arm926ej-s "arm926ej-s CPU" \
arm940t "arm940t CPU" \
arm9tdmi "arm9tdmi CPU" \
arm10tdmi "arm10tdmi CPU" \
arm1020t "arm1020t CPU" \
arm1026ejs "arm1026ejs CPU" \
arm1136js "arm1136js CPU" \
arm1026ej-s "arm1026ej-s CPU" \
arm1136j-s "arm1136j-s CPU" \
xscale "xscale CPU" \
iwmmxt "iwmmxt CPU" \
ep9312 "ep9312 CPU"

+ 7
- 5
architecture/arm/gcc-options

@ -1,15 +1,17 @@
#!/bin/bash
if [ $ROCKCFG_ARM_OPT != generic ] ; then
var_append GCC3_WRAPPER_INSERT " " \
"-mcpu=$ROCKCFG_ARM_OPT"
var_append GCC4_WRAPPER_INSERT " " \
# Append options so the gcc -V option always comes first.
# GCC 3.x uses CPU names without '-', eg. 926ejs instead of 926ej-s.
var_append GCC3_WRAPPER_APPEND " " \
"-mcpu=${ROCKCFG_ARM_OPT/-s/s}"
var_append GCC4_WRAPPER_APPEND " " \
"-mcpu=$ROCKCFG_ARM_OPT"
fi
if [ $ROCKCFG_ARM_OPT_ARCH != generic ] ; then
var_append GCC3_WRAPPER_INSERT " " \
var_append GCC3_WRAPPER_APPEND " " \
"-march=$ROCKCFG_ARM_OPT_ARCH"
var_append GCC4_WRAPPER_INSERT " " \
var_append GCC4_WRAPPER_APPEND " " \
"-march=$ROCKCFG_ARM_OPT_ARCH"
fi

+ 4
- 3
architecture/hppa/gcc-options

@ -1,10 +1,11 @@
if [ "$ROCKCFG_HPPA_BITS" == "32" ] ; then
var_append GCC_WRAPPER_INSERT " " "-march=1.1"
# Append options so the gcc -V option always comes first.
var_append GCC_WRAPPER_APPEND " " "-march=1.1"
fi
if [ "$ROCKCFG_HPPA_BITS" == "64" ] ; then
var_append GCC_WRAPPER_INSERT " " "-march=2.0"
var_append GCC_WRAPPER_APPEND " " "-march=2.0"
fi
var_append GCC_WRAPPER_INSERT " " "-fno-unit-at-a-time"
var_append GCC_WRAPPER_APPEND " " "-fno-unit-at-a-time"

+ 12
- 4
architecture/mips/config.in

@ -23,7 +23,9 @@
choice ROCKCFG_MIPS_ABI 32 \
32 "Build with -mabi=32" \
n32 "Build with -mabi=n32" \
64 "Build with -mabi=64"
64 "Build with -mabi=64" \
o64 "Build with -mabi=o64" \
eabi "Build with -mabi=eabi"
ROCKCFG_ID="$ROCKCFG_ID-$ROCKCFG_MIPS_ABI"
@ -34,7 +36,14 @@ choice ROCKCFG_MIPS_ENDIANESS EB \
ROCKCFG_ID="$ROCKCFG_ID-$ROCKCFG_MIPS_ENDIANESS"
choice ROCKCFG_MIPS_OPT from-abi \
from-abi "No special optimisation" \
from-abi "Build for mips1 for 32-bit ABIs, mips3 for 64-bit ABIs" \
mips1 "Build for MIPS1 ISA" \
mips2 "Build for MIPS2 ISA" \
mips3 "Build for MIPS3 ISA" \
mips4 "Build for MIPS4 ISA" \
mips32 "Build for MIPS32 ISA" \
mips32r2 "Build for MIPS32r2 ISA" \
mips64 "Build for MIPS64 ISA" \
r2000 "Build for R2000 CPU" \
r3000 "Build for R3000 CPU" \
r3900 "Build for R3900 CPU" \
@ -59,9 +68,8 @@ choice ROCKCFG_MIPS_OPT from-abi \
vr5000 "Build for vr5000 CPU" \
vr5400 "Build for vr5400 CPU" \
vr5500 "Build for vr5500 CPU" \
orion "Build for Orion CPU"
orion "Build for Orion CPU"
if [ $ROCKCFG_MIPS_OPT != from-abi ] ; then
ROCKCFG_ID="$ROCKCFG_ID-$ROCKCFG_MIPS_OPT"
fi

+ 5
- 2
architecture/mips/gcc-options

@ -1,3 +1,6 @@
var_append GCC3_WRAPPER_INSERT " " \
"-march=$ROCKCFG_MIPS_OPT -mtune=$ROCKCFG_MIPS_OPT -mabi=$ROCKCFG_MIPS_ABI"
# Append options so the gcc -V option always comes first.
var_append GCC3_WRAPPER_APPEND " " \
"-march=$ROCKCFG_MIPS_OPT -mabi=$ROCKCFG_MIPS_ABI"
var_append GCC4_WRAPPER_APPEND " " \
"-march=$ROCKCFG_MIPS_OPT -mabi=$ROCKCFG_MIPS_ABI"

+ 3
- 2
architecture/powerpc/gcc-options

@ -1,8 +1,9 @@
if [ "$ROCKCFG_POWERPC_ISA" ] ; then
var_append GCC_WRAPPER_INSERT " " "-mcpu=$ROCKCFG_POWERPC_ISA"
# Append options so the gcc -V option always comes first.
var_append GCC_WRAPPER_APPEND " " "-mcpu=$ROCKCFG_POWERPC_ISA"
fi
if [ "$ROCKCFG_POWERPC_OPT" != "generic" ] ; then
var_append GCC_WRAPPER_INSERT " " "-mtune=$ROCKCFG_POWERPC_OPT"
var_append GCC_WRAPPER_APPEND " " "-mtune=$ROCKCFG_POWERPC_OPT"
fi

+ 4
- 3
architecture/sparc/gcc-options

@ -1,16 +1,17 @@
if [ "$ROCKCFG_SPARC_OPT" != "generic" ] ; then
var_append GCC_WRAPPER_INSERT " " "-mcpu=$ROCKCFG_SPARC_OPT"
# Append options so the gcc -V option always comes first.
var_append GCC_WRAPPER_APPEND " " "-mcpu=$ROCKCFG_SPARC_OPT"
case "$ROCKCFG_SPARC_OPT" in
v7) tune=cypress ;;
v8) tune=supersparc ;;
v9) tune=ultrasparc ;;
esac
[ "$tune" ] && var_append GCC_WRAPPER_INSERT " " "-mtune=$tune"
[ "$tune" ] && var_append GCC_WRAPPER_APPEND " " "-mtune=$tune"
if [ $ROCKCFG_SPARC_BITS == 64 ] ; then
var_append GCC_WRAPPER_INSERT " " "-Wa,-Av9a -mno-app-regs"
var_append GCC_WRAPPER_APPEND " " "-Wa,-Av9a -mno-app-regs"
fi
fi

+ 26
- 27
architecture/x86/gcc-options

@ -5,47 +5,46 @@ then
case "$ROCKCFG_X86_OPT" in
generic)
var_append GCC_WRAPPER_INSERT " " "-march=i486"
# Append options so the gcc -V option always comes first.
var_append GCC_WRAPPER_APPEND " " "-march=i486"
;;
via-c3)
var_append GCC2_WRAPPER_INSERT " " "-march=k6"
var_append GCC3_WRAPPER_INSERT " " "-march=k62"
var_append GCC4_WRAPPER_INSERT " " "-march=k62"
var_append GCC2_WRAPPER_APPEND " " "-march=k6"
var_append GCC3_WRAPPER_APPEND " " "-march=k62"
var_append GCC4_WRAPPER_APPEND " " "-march=k62"
;;
via-c3-improved)
var_append GCC_WRAPPER_INSERT " " "-march=i686"
var_append GCC_WRAPPER_APPEND " " "-march=i686"
;;
via-c3-2)
var_append GCC2_WRAPPER_INSERT " " "-march=pentiumpro"
var_append GCC3_WRAPPER_INSERT " " "-march=pentium-mmx"
var_append GCC4_WRAPPER_INSERT " " "-march=pentium-mmx"
var_append GCC2_WRAPPER_APPEND " " "-march=pentiumpro"
var_append GCC3_WRAPPER_APPEND " " "-march=pentium-mmx"
var_append GCC4_WRAPPER_APPEND " " "-march=pentium-mmx"
;;
k6*)
var_append GCC2_WRAPPER_INSERT " " "-march=k6"
var_append GCC2_WRAPPER_APPEND " " "-march=k6"
var_append GCC3_WRAPPER_INSERT " " "-march=$ROCKCFG_X86_OPT"
var_append GCC3_WRAPPER_APPEND " " "-march=$ROCKCFG_X86_OPT"
# workaround and should be removed when gcc 3.x got fixed ...
var_append GCC3_WRAPPER_INSERT " " "-fno-branch-count-reg"
var_append GCC3_WRAPPER_APPEND " " "-fno-branch-count-reg"
var_append GCC4_WRAPPER_INSERT " " "-march=$ROCKCFG_X86_OPT"
# # workaround and should be removed when gcc 3.x got fixed ...
# var_append GCC4_WRAPPER_INSERT " " "-fno-branch-count-reg"
var_append GCC4_WRAPPER_APPEND " " "-march=$ROCKCFG_X86_OPT"
;;
*)
var_append GCC3_WRAPPER_INSERT " " "-march=$ROCKCFG_X86_OPT"
var_append GCC4_WRAPPER_INSERT " " "-march=$ROCKCFG_X86_OPT"
var_append GCC3_WRAPPER_APPEND " " "-march=$ROCKCFG_X86_OPT"
var_append GCC4_WRAPPER_APPEND " " "-march=$ROCKCFG_X86_OPT"
;;
esac
case "$ROCKCFG_X86_OPT" in
i486)
var_append GCC2_WRAPPER_INSERT " " "-march=$ROCKCFG_X86_OPT" ;;
var_append GCC2_WRAPPER_APPEND " " "-march=$ROCKCFG_X86_OPT" ;;
pentium|pentium-mmx)
var_append GCC2_WRAPPER_INSERT " " "-march=pentium" ;;
var_append GCC2_WRAPPER_APPEND " " "-march=pentium" ;;
pentium*)
var_append GCC2_WRAPPER_INSERT " " "-march=pentiumpro" ;;
var_append GCC2_WRAPPER_APPEND " " "-march=pentiumpro" ;;
athlon*)
var_append GCC2_WRAPPER_INSERT " " "-march=k6" ;;
var_append GCC2_WRAPPER_APPEND " " "-march=k6" ;;
esac
else
@ -54,18 +53,18 @@ else
# Other values like i686 or pentiumpro cause a build error in e.g.
# glibc 2.6.1 when building with gcc 4.2.1.
if [[ "$xpkg" = *-32bit ]] ; then
var_append GCC_WRAPPER_INSERT " " "-march=pentium4"
var_append GCC_WRAPPER_APPEND " " "-march=pentium4"
fi
;;
intel)
var_append GCC2_WRAPPER_INSERT " " "-march=x86_64"
var_append GCC3_WRAPPER_INSERT " " "-march=nocona"
var_append GCC4_WRAPPER_INSERT " " "-march=nocona"
var_append GCC2_WRAPPER_APPEND " " "-march=x86_64"
var_append GCC3_WRAPPER_APPEND " " "-march=nocona"
var_append GCC4_WRAPPER_APPEND " " "-march=nocona"
;;
athlon)
var_append GCC2_WRAPPER_INSERT " " "-march=x86_64"
var_append GCC3_WRAPPER_INSERT " " "-march=k8"
var_append GCC4_WRAPPER_INSERT " " "-march=k8"
var_append GCC2_WRAPPER_APPEND " " "-march=x86_64"
var_append GCC3_WRAPPER_APPEND " " "-march=k8"
var_append GCC4_WRAPPER_APPEND " " "-march=k8"
;;
esac
fi

Loading…
Cancel
Save