diff options
author | abs <abs@pkgsrc.org> | 2008-12-21 15:49:27 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2008-12-21 15:49:27 +0000 |
commit | 3e7881f506aa568fd78d5ba14bf08d88f0f20b38 (patch) | |
tree | 5233a5a3bd2cd8874731d546b15a383c5b5eea0c /devel/cpuflags | |
parent | 05d38d24bcbf6ba000c36a5a25209b665ce33c6c (diff) | |
download | pkgsrc-3e7881f506aa568fd78d5ba14bf08d88f0f20b38.tar.gz |
Updated devel/cpuflags to 1.28
Add:
"Intel(R) Celeron(R) M processor "* - thanks to Daniel Horecki
"Intel(R) Pentium(R) 4 CPU 3.20GHz" - thanks to John Nemeth
"VIA Nehemiah" and "Intel(R) Atom(TM) CPU N270 " - thanks to Joel CARNAT
Diffstat (limited to 'devel/cpuflags')
-rw-r--r-- | devel/cpuflags/Makefile | 4 | ||||
-rw-r--r-- | devel/cpuflags/files/subr_x86 | 14 |
2 files changed, 15 insertions, 3 deletions
diff --git a/devel/cpuflags/Makefile b/devel/cpuflags/Makefile index 760ba5fd94d..44bcc2a6acd 100644 --- a/devel/cpuflags/Makefile +++ b/devel/cpuflags/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.133 2008/12/20 09:56:46 abs Exp $ +# $NetBSD: Makefile,v 1.134 2008/12/21 15:49:27 abs Exp $ -DISTNAME= cpuflags-1.27 +DISTNAME= cpuflags-1.28 CATEGORIES= devel sysutils MASTER_SITES= # empty DISTFILES= # empty diff --git a/devel/cpuflags/files/subr_x86 b/devel/cpuflags/files/subr_x86 index 557fb355740..cd87bc5606b 100644 --- a/devel/cpuflags/files/subr_x86 +++ b/devel/cpuflags/files/subr_x86 @@ -1,21 +1,33 @@ -# $NetBSD: subr_x86,v 1.5 2008/12/20 09:56:46 abs Exp $ +# $NetBSD: subr_x86,v 1.6 2008/12/21 15:49:27 abs Exp $ # Apparently the only way to reliably determine the architecture of a recent # Intel CPU is to use the cpu brand string - as they reused family and # extended family bitflags... annoying + +# AMD, in contrast decided to keep things simple: +# (thanks to Christoph Egger for this list) +# Family 0x6: AMD K7 +# Family 0xf: AMD K8 +# Family 0x10: AMD Barcelona/Phenom +# Family 0x11: AMD Turion Ultra + map_x86_brand_string() { case "$1" in "AMD-K6(tm)-III Processor"*) echo '-march=k6-3' ;; + "VIA Nehemiah"*) echo '-march=c3' ;; "Genuine Intel(R) CPU T2400"*) echo '-march=core2' ;; + "Intel(R) Atom(TM) CPU N270 "*) echo '-march=prescott' ;;#So far "Intel(R) Celeron(R) CPU E1400"*) echo '-march=core2' ;; "Intel(R) Celeron(R) CPU 2.40GHz") echo '-march=pentium4' ;; + "Intel(R) Celeron(R) M processor "*) echo '-march=pentium-m' ;; "Intel(R) Celeron(TM) CPU 1400MHz") echo '-march=pentium3' ;; "Intel(R) Core(TM)2 CPU "*) echo '-march=core2' ;; "Intel(R) Core(TM)2 Duo CPU "*) echo '-march=core2' ;; "Intel(R) Core(TM)2 Quad CPU"*) echo '-march=core2' ;; "Intel(R) Pentium(R) 4 CPU 2.80GHz") echo '-march=pentium4' ;; "Intel(R) Pentium(R) 4 CPU 3.00GHz") echo '-march=prescott' ;; + "Intel(R) Pentium(R) 4 CPU 3.20GHz") echo '-march=prescott' ;; "Intel(R) Pentium(R) D CPU "*) echo '-march=prescott' ;; "Intel(R) Xeon(R) CPU 3040"*) echo '-march=core2' ;; "Intel(R) Xeon(R) CPU 3050"*) echo '-march=core2' ;; |