Update cpuflags to 0.90
NetBSD: treat 'AMD Unknown K7 (Athlon)' as -march=athlon All: If -v is given, also correctly display CPUFLAGS value
This commit is contained in:
parent
1b7b1826e1
commit
bc733e575d
4 changed files with 15 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.92 2005/07/21 08:33:13 abs Exp $
|
||||
# $NetBSD: Makefile,v 1.93 2005/07/22 12:13:12 abs Exp $
|
||||
#
|
||||
|
||||
DISTNAME= cpuflags-0.89
|
||||
DISTNAME= cpuflags-0.90
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= # empty
|
||||
DISTFILES= # empty
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $NetBSD: cpuflags.Linux,v 1.17 2005/06/25 10:50:49 abs Exp $
|
||||
# $NetBSD: cpuflags.Linux,v 1.18 2005/07/22 12:13:12 abs Exp $
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
AWK=awk
|
||||
|
@ -63,7 +63,9 @@ else
|
|||
fi
|
||||
|
||||
if [ -n "$opt_v" ] ; then
|
||||
if [ -z "$NONE" ] ; then
|
||||
if [ -n "$FLAGS" ]; then
|
||||
echo "CPUFLAGS=$FLAGS"
|
||||
elif [ -z "$NONE" ] ; then
|
||||
echo "CPUFLAGS=Unknown"
|
||||
else
|
||||
echo "CPUFLAGS=None"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $NetBSD: cpuflags.NetBSD,v 1.60 2005/05/01 22:03:37 abs Exp $
|
||||
# $NetBSD: cpuflags.NetBSD,v 1.61 2005/07/22 12:13:12 abs Exp $
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
AWK=awk
|
||||
|
@ -83,6 +83,7 @@ case $hw_machine_arch in
|
|||
*AMD\ K7\ \(Athlon\)\ XP\ *) FLAGS='-march=athlon-xp' ;;
|
||||
*AMD\ Athlon\ XP\ *) FLAGS='-march=athlon-xp' ;;
|
||||
*AMD\ K7*|*AMD\ Athlon*) FLAGS='-march=athlon' ;;
|
||||
*AMD\ Unknown\ K7\ \(Athlon\)*) FLAGS='-march=athlon' ;;
|
||||
*386-class*) FLAGS='-march=i386' ;;
|
||||
*486-class*) FLAGS='-march=i486' ;;
|
||||
*586-class*) FLAGS='-march=pentium' ;;
|
||||
|
@ -178,7 +179,9 @@ else
|
|||
fi
|
||||
|
||||
if [ -n "$opt_v" ] ; then
|
||||
if [ -z "$NONE" ] ; then
|
||||
if [ -n "$FLAGS" ]; then
|
||||
echo "CPUFLAGS=$FLAGS"
|
||||
elif [ -z "$NONE" ] ; then
|
||||
echo "CPUFLAGS=Unknown"
|
||||
else
|
||||
echo "CPUFLAGS=None"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $NetBSD: cpuflags.SunOS,v 1.7 2005/05/01 22:03:37 abs Exp $
|
||||
# $NetBSD: cpuflags.SunOS,v 1.8 2005/07/22 12:13:12 abs Exp $
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
|
||||
|
||||
AWK=nawk
|
||||
|
@ -32,7 +32,9 @@ else
|
|||
fi
|
||||
|
||||
if [ -n "$opt_v" ] ; then
|
||||
if [ -z "$NONE" ] ; then
|
||||
if [ -n "$FLAGS" ]; then
|
||||
echo "CPUFLAGS=$FLAGS"
|
||||
elif [ -z "$NONE" ] ; then
|
||||
echo "CPUFLAGS=Unknown"
|
||||
else
|
||||
echo "CPUFLAGS=None"
|
||||
|
|
Loading…
Reference in a new issue