diff options
-rw-r--r-- | sysutils/Makefile | 3 | ||||
-rw-r--r-- | sysutils/cpuflags/Makefile | 25 | ||||
-rwxr-xr-x | sysutils/cpuflags/files/cpuflags.NetBSD | 58 | ||||
-rw-r--r-- | sysutils/cpuflags/pkg/DESCR | 2 | ||||
-rw-r--r-- | sysutils/cpuflags/pkg/PLIST | 3 |
5 files changed, 1 insertions, 90 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 8699042c06b..ff36268673e 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.100 2001/05/31 11:29:43 abs Exp $ +# $NetBSD: Makefile,v 1.101 2001/06/07 09:58:08 abs Exp $ # COMMENT= System utilities @@ -18,7 +18,6 @@ SUBDIR+= cdrdao SUBDIR+= cdrecord SUBDIR+= cfengine SUBDIR+= cpogm -SUBDIR+= cpuflags SUBDIR+= crashme SUBDIR+= daemontools SUBDIR+= depot diff --git a/sysutils/cpuflags/Makefile b/sysutils/cpuflags/Makefile deleted file mode 100644 index a5df3a609bd..00000000000 --- a/sysutils/cpuflags/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# $NetBSD: Makefile,v 1.2 2001/05/31 11:31:59 abs Exp $ -# - -DISTNAME= cpuflags-0.1 -CATEGORIES= sysutils -MASTER_SITES= # empty -DISTFILES= # empty - -MAINTAINER= abs@netbsd.org -COMMENT= Determine compiler flags to best target current cpu - -ONLY_FOR_PLATFORM= NetBSD-*-* Linux-*-* - -EXTRACT_ONLY= # empty -NO_WRKSUBDIR= yes -NO_CHECKSUM= yes -NO_PATCH= yes -NO_CONFIGURE= yes -NO_BUILD= yes - -do-install: - ${INSTALL_SCRIPT} ${FILESDIR}/cpuflags.${OPSYS} ${PREFIX}/bin/cpuflags - ${INSTALL_MAN} ${FILESDIR}/cpuflags.1 ${PREFIX}/man/man1/cpuflags.1 - -.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/cpuflags/files/cpuflags.NetBSD b/sysutils/cpuflags/files/cpuflags.NetBSD deleted file mode 100755 index 05e1dbabd73..00000000000 --- a/sysutils/cpuflags/files/cpuflags.NetBSD +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# $NetBSD: cpuflags.NetBSD,v 1.1.1.1 2001/05/31 11:29:17 abs Exp $ - -gcc_ver=`gcc -v 2>&1 | awk '/gcc version/ {print $3}'` -hw_model=`sysctl -n hw.model` - -case $gcc_ver in - egcs* ) - gcc_ver=2.8 ;; -esac - -if [ "$gcc_ver" \< 2.8 ];then # Old gcc, such as in NetBSD 1.3 - - case $hw_model in - # i386 - *386-class*) FLAGS='-mno-486' ;; - *486-class*) FLAGS='-m486' ;; - *586-class*) FLAGS='-m486' ;; - *686-class*) FLAGS='-m486' ;; - # - # sparc - MB86904* | MB86907*) FLAGS="-msupersparc" ;; # ss5 - TMS390Z50*) FLAGS="-msupersparc" ;; # ss10/ss20 - MB86930* | MB86934*) FLAGS="-msparclite" ;; # from gcc - MB86900/1A*) FLAGS="-mcypress" ;; # ss1+ - # - # arm - SA-110*) FLAGS="" ;; # shark - # - *) echo "Unknown hw.model '$hw_model'" >&2 - esac - -else # Modern gcc - - case $hw_model in - # i386 - *386-class*) FLAGS='-march=i386' ;; - *486-class*) FLAGS='-march=i486' ;; - *586-class*) FLAGS='-march=pentium' ;; - *686-class*) FLAGS='-march=pentiumpro' ;; - # - # sparc - MB86904* | MB86907*) FLAGS="-mcpu=supersparc" ;; # ss5 - TMS390Z50*) FLAGS="-mcpu=supersparc" ;; # ss10/ss20 - MB86930* | MB86934*) FLAGS="-mcpu=sparclite" ;; # from gcc - MB86900/1A*) FLAGS="-mcpu=cypress" ;; # ss1+ - # - # arm - commented until issue with identifying SA based RiscPCs solved - # SA-110*) FLAGS="-mcpu=strongarm110" ;; # shark - SA-110*) FLAGS="" ;; - # - *) echo "Unknown hw.model '$hw_model'" >&2 - esac - -fi -echo $FLAGS - -exit 0 diff --git a/sysutils/cpuflags/pkg/DESCR b/sysutils/cpuflags/pkg/DESCR deleted file mode 100644 index bd9da12fa8c..00000000000 --- a/sysutils/cpuflags/pkg/DESCR +++ /dev/null @@ -1,2 +0,0 @@ -cpuflags returns the appropriate gcc flags to optimise compilation for the -current CPU. diff --git a/sysutils/cpuflags/pkg/PLIST b/sysutils/cpuflags/pkg/PLIST deleted file mode 100644 index f16dfe87409..00000000000 --- a/sysutils/cpuflags/pkg/PLIST +++ /dev/null @@ -1,3 +0,0 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2001/05/31 11:29:17 abs Exp $ -bin/cpuflags -man/man1/cpuflags.1 |