pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/cpuflags Updated devel/cpuflags to 1.28



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b65be030e7de
branches:  trunk
changeset: 551965:b65be030e7de
user:      abs <abs%pkgsrc.org@localhost>
date:      Sun Dec 21 15:49:27 2008 +0000

description:
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:

 devel/cpuflags/Makefile       |   4 ++--
 devel/cpuflags/files/subr_x86 |  14 +++++++++++++-
 2 files changed, 15 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r 397fd68eca7a -r b65be030e7de devel/cpuflags/Makefile
--- a/devel/cpuflags/Makefile   Sun Dec 21 15:20:27 2008 +0000
+++ b/devel/cpuflags/Makefile   Sun Dec 21 15:49:27 2008 +0000
@@ -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 -r 397fd68eca7a -r b65be030e7de devel/cpuflags/files/subr_x86
--- a/devel/cpuflags/files/subr_x86     Sun Dec 21 15:20:27 2008 +0000
+++ b/devel/cpuflags/files/subr_x86     Sun Dec 21 15:49:27 2008 +0000
@@ -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' ;;



Home | Main Index | Thread Index | Old Index