diff options
-rw-r--r-- | devel/cpuflags/Makefile | 4 | ||||
-rwxr-xr-x | devel/cpuflags/files/cpuflags.Linux | 3 | ||||
-rwxr-xr-x | devel/cpuflags/files/cpuflags.NetBSD | 22 | ||||
-rw-r--r-- | doc/CHANGES-2006 | 3 |
4 files changed, 21 insertions, 11 deletions
diff --git a/devel/cpuflags/Makefile b/devel/cpuflags/Makefile index 5b47a643126..954ec1fb0aa 100644 --- a/devel/cpuflags/Makefile +++ b/devel/cpuflags/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.107 2006/10/12 12:41:46 abs Exp $ +# $NetBSD: Makefile,v 1.108 2006/11/30 23:24:39 abs Exp $ # -DISTNAME= cpuflags-1.04 +DISTNAME= cpuflags-1.05 CATEGORIES= sysutils MASTER_SITES= # empty DISTFILES= # empty diff --git a/devel/cpuflags/files/cpuflags.Linux b/devel/cpuflags/files/cpuflags.Linux index 22b08870749..d07256ab9d1 100755 --- a/devel/cpuflags/files/cpuflags.Linux +++ b/devel/cpuflags/files/cpuflags.Linux @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: cpuflags.Linux,v 1.20 2006/09/15 14:37:32 abs Exp $ +# $NetBSD: cpuflags.Linux,v 1.21 2006/11/30 23:24:39 abs Exp $ PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH AWK=awk @@ -41,6 +41,7 @@ case $hw_machine_arch in "Pentium III (Coppermine)") FLAGS='-march=pentium3' ;; "Pentium III (Katmai)") FLAGS='-march=pentium3' ;; "AMD Athlon(tm) 64"*) FLAGS='-march=athlon-xp' ;; + "AMD Opteron(tm) Processor "*) FLAGS='-march=opteron' ;; "Intel(R) Celeron(R) CPU "* | "Intel(R) Xeon(TM) CPU "*) case "$hw_flags" in *" sse2 "*) diff --git a/devel/cpuflags/files/cpuflags.NetBSD b/devel/cpuflags/files/cpuflags.NetBSD index f01d957ab4c..db5d81cf6ce 100755 --- a/devel/cpuflags/files/cpuflags.NetBSD +++ b/devel/cpuflags/files/cpuflags.NetBSD @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: cpuflags.NetBSD,v 1.66 2006/09/15 14:37:32 abs Exp $ +# $NetBSD: cpuflags.NetBSD,v 1.67 2006/11/30 23:24:39 abs Exp $ PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH AWK=awk @@ -63,7 +63,18 @@ case $hw_machine_arch in esac ;; esac ;; - i386) case $hw_model in + hppa) + case "$(egrep '^cpu0 ' /var/run/dmesg.boot)" in + *\ PA7100\ *) FLAGS="-march=1.1 -mschedule=7100" ;; # untested + *\ PA7150\ *) FLAGS="-march=1.1 -mschedule=7100" ;; # untested + *\ PA7100LC\ *) FLAGS="-march=1.1 -mschedule=7100LC" ;; # untested + *\ PA7200\ *) FLAGS="-march=1.1 -mschedule=7200" ;; # untested + *\ PA7300LC\ *) FLAGS="-march=1.1 -mschedule=7300" ;; # B180L + *\ PA8*) FLAGS="-march=2.0 -mschedule=8000" ;; # untested + esac + ;; + + i386 | x86_64) case $hw_model in *Intel\ Pentium/MMX\ *) FLAGS='-march=pentium-mmx' ;; *Intel\ Pentium\ II\ *) FLAGS='-march=pentium2' ;; *Intel\ Pentium\ III\ *) FLAGS='-march=pentium3' ;; @@ -73,6 +84,7 @@ case $hw_machine_arch in *Intel\ Pentium\ M\ *) FLAGS='-march=pentium-m' ;; *Intel\ Mobile\ Pentium\ 4\ *) FLAGS='-march=pentium4m' ;; *Intel\ Pentium\ 4\ *) FLAGS='-march=pentium4' ;; + *Intel\(R\)\ Pentium\(R\)\ D*) FLAGS='-march=nocona' ;; *VIA\ C3*\ *) FLAGS='-march=c3' ;; *AMD\ K6-III*) FLAGS='-march=k6-3' ;; *AMD\ K6-2*) FLAGS='-march=k6-2' ;; @@ -142,7 +154,7 @@ case $hw_machine_arch in 7410\ *) FLAGS='-mcpu=7400' ;; # powerbook g4 7447A\ *) FLAGS='-mcpu=7450' ;; # 7450\ *) FLAGS='-mcpu=7450' ;; # tibook 550 - 750\ *) FLAGS='-mcpu=750' ;; # Untested + 750\ *) FLAGS='-mcpu=750' ;; # orig. iBook esac ;; @@ -162,10 +174,6 @@ case $hw_machine_arch in *[\ \(]SUNW,UltraSPARC*) FLAGS='-mcpu=v9' ;; # Ultra esac ;; - x86_64) # No x86_64 specific gcc optimisations yet - NONE=1 - ;; - vax) # No VAX specific gcc optimisations available NONE=1 ;; diff --git a/doc/CHANGES-2006 b/doc/CHANGES-2006 index 1a2b4ca7d1c..fed4c80e404 100644 --- a/doc/CHANGES-2006 +++ b/doc/CHANGES-2006 @@ -1,4 +1,4 @@ ->$NetBSD: CHANGES-2006,v 1.1900 2006/11/30 14:08:54 gdt Exp $ +>$NetBSD: CHANGES-2006,v 1.1901 2006/11/30 23:25:08 abs Exp $ Changes to the packages collection and infrastructure in 2006: @@ -5471,3 +5471,4 @@ Changes to the packages collection and infrastructure in 2006: Removed www/firefox2-bin-flash [ghen 2006-11-30] Added sysutils/cpmtools version 2.5 [obache 2006-11-30] Updated security/EasyPG to 0.0.8 [gdt 2006-11-30] + Updated devel/cpuflags to 1.05 [abs 2006-11-30] |