diff options
author | abs <abs@pkgsrc.org> | 2008-12-10 23:27:17 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2008-12-10 23:27:17 +0000 |
commit | b2e170707c79ba9e0f16b45d68dae0371f4418f8 (patch) | |
tree | 4144b04b8a37e492459e05360998aed6d2562b9d /devel/cpuflags/files/subr_SunOS | |
parent | 528b99347b92cf500d04d3b565bb53e646891bc4 (diff) | |
download | pkgsrc-b2e170707c79ba9e0f16b45d68dae0371f4418f8.tar.gz |
Updated devel/cpuflags to 1.24
Add map_x86_brand_string to subr_x86 and use in NetBSD,
Linux and Solaris to determine ARCH for Intel CPUs after PIII.
(Still need to rework AMD CPU detection to use family and
extended family)
Added 'AMD K6-2 (586-class)' - thanks Brian Ginsbach
Added 'Pentium(R) Dual-Core CPU E5200' - thanks Andreas Burghardt
Diffstat (limited to 'devel/cpuflags/files/subr_SunOS')
-rwxr-xr-x | devel/cpuflags/files/subr_SunOS | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/devel/cpuflags/files/subr_SunOS b/devel/cpuflags/files/subr_SunOS index 07beabd10a3..c6162baf9f1 100755 --- a/devel/cpuflags/files/subr_SunOS +++ b/devel/cpuflags/files/subr_SunOS @@ -1,4 +1,4 @@ -# $NetBSD: subr_SunOS,v 1.1 2007/08/20 11:21:21 abs Exp $ +# $NetBSD: subr_SunOS,v 1.2 2008/12/10 23:27:17 abs Exp $ AWK=nawk SED=sed @@ -15,7 +15,7 @@ END extract_hw_details() { hw_arch=`/usr/bin/uname -m` - hw_psrinfo=`psrinfo -v | $AWK 'NR==3{print}'` # Just gets the first CPU + hw_psrinfo=`psrinfo -pv | $AWK 'NR==3{print}'` # Just gets the first CPU } determine_arch() @@ -26,9 +26,13 @@ determine_arch() sun4m ) ARCH='-mcpu=supersparc' ;; sun4u ) ARCH='-mcpu=v9' ;; i86pc ) - case "$hw_psrinfo" in - *AMD\ Opteron\(tm\)*) ARCH="-mcpu=opteron" ;; - esac + include subr_x86 # this provides map_x86_brand_string() + ARCH=$(map_x86_brand_string "$cpu_brand") + if [ -z "$ARCH" ] ; then + case "$hw_psrinfo" in + *) + esac + fi ;; esac echo $ARCH |