|
|
} | } |
case $tune in | case $tune in |
601|ppc601|PowerPC601) | 601|ppc601|PowerPC601) |
ARCHFLAGS="-mcpu=601" |
ARCHFLAGS="-march=601" |
warn_altivec enabled PPC601 | warn_altivec enabled PPC601 |
;; | ;; |
603*|ppc603*|PowerPC603*) | 603*|ppc603*|PowerPC603*) |
ARCHFLAGS="-mcpu=603" |
ARCHFLAGS="-march=603" |
warn_altivec enabled PPC603 | warn_altivec enabled PPC603 |
;; | ;; |
604*|ppc604*|PowerPC604*) | 604*|ppc604*|PowerPC604*) |
ARCHFLAGS="-mcpu=604" |
ARCHFLAGS="-march=604" |
warn_altivec enabled PPC604 | warn_altivec enabled PPC604 |
;; | ;; |
G3|g3|75*|ppc75*|PowerPC75*) | G3|g3|75*|ppc75*|PowerPC75*) |
ARCHFLAGS="-mcpu=750 -mtune=750 -mpowerpc-gfxopt" |
ARCHFLAGS="-march=750 -mtune=750 -mpowerpc-gfxopt" |
warn_altivec enabled PPC75x | warn_altivec enabled PPC75x |
;; | ;; |
G4|g4|745*|ppc745*|PowerPC745*) | G4|g4|745*|ppc745*|PowerPC745*) |
ARCHFLAGS="-mcpu=7450 -mtune=7450 -mpowerpc-gfxopt" |
ARCHFLAGS="-march=7450 -mtune=7450 -mpowerpc-gfxopt" |
warn_altivec disabled PPC745x | warn_altivec disabled PPC745x |
;; | ;; |
74*|ppc74*|PowerPC74*) | 74*|ppc74*|PowerPC74*) |
ARCHFLAGS="-mcpu=7400 -mtune=7400 -mpowerpc-gfxopt" |
ARCHFLAGS="-march=7400 -mtune=7400 -mpowerpc-gfxopt" |
warn_altivec disabled PPC74xx | warn_altivec disabled PPC74xx |
;; | ;; |
G5|g5|970|ppc970|PowerPC970|power4*|Power4*) | G5|g5|970|ppc970|PowerPC970|power4*|Power4*) |
ARCHFLAGS="-mcpu=970 -mtune=970 -mpowerpc-gfxopt -mpowerpc64" |
ARCHFLAGS="-march=970 -mtune=970 -mpowerpc-gfxopt -mpowerpc64" |
warn_altivec disabled PPC970 | warn_altivec disabled PPC970 |
POWERPCMODE="64bits" | POWERPCMODE="64bits" |
;; | ;; |
sparc64) | sparc64) |
ARCHFLAGS="-mcpu=v9 -mtune=v9" |
ARCHFLAGS="-march=v9 -mtune=v9" |
;; | ;; |
bf*) #bf531 bf532 bf533 bf561 bf5xx all get this config | bf*) #bf531 bf532 bf533 bf561 bf5xx all get this config |
add_cflags "-mfdpic" | add_cflags "-mfdpic" |
|
|
fi | fi |
| |
if enabled cpu_overide; then | if enabled cpu_overide; then |
ARCHFLAGS="-mcpu=$arch_raw $ARCHFLAGS" |
ARCHFLAGS="-march=$arch_raw $ARCHFLAGS" |
fi | fi |
| |
gnu_make(){ | gnu_make(){ |
|
|
if test x"$tune" = x"generic" -a x"$arch" = x"x86_64" -a x"$cpu_overide" != x"yes"; then | if test x"$tune" = x"generic" -a x"$arch" = x"x86_64" -a x"$cpu_overide" != x"yes"; then |
ARCHFLAGS="-march=k8" | ARCHFLAGS="-march=k8" |
elif test x"$tune" = x"generic" -a x"$arch" = x"sparc64" -a x"$cpu_overide" != x"yes"; then | elif test x"$tune" = x"generic" -a x"$arch" = x"sparc64" -a x"$cpu_overide" != x"yes"; then |
ARCHFLAGS="-mcpu=ultrasparc -mvis" |
ARCHFLAGS="-march=ultrasparc -mvis" |
fi | fi |
| |
if enabled proc_error_msg; then | if enabled proc_error_msg; then |