[Midnightbsd-cvs] src: bsd.cpu.mk: Add core alias
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Apr 28 01:50:59 EDT 2008
Log Message:
-----------
Add core alias
Modified Files:
--------------
src/share/mk:
bsd.cpu.mk (r1.3 -> r1.4)
-------------- next part --------------
Index: bsd.cpu.mk
===================================================================
RCS file: /home/cvs/src/share/mk/bsd.cpu.mk,v
retrieving revision 1.3
retrieving revision 1.4
diff -L share/mk/bsd.cpu.mk -L share/mk/bsd.cpu.mk -u -r1.3 -r1.4
--- share/mk/bsd.cpu.mk
+++ share/mk/bsd.cpu.mk
@@ -1,6 +1,6 @@
-# $FreeBSD: src/share/mk/bsd.cpu.mk,v 1.48 2005/05/24 21:24:40 cognet Exp $
# $MidnightBSD$
-#
+# $FreeBSD: src/share/mk/bsd.cpu.mk,v 1.62.2.1 2007/10/19 17:08:38 cognet Exp $
+
# Set default CPU compile flags and baseline CPUTYPE for each arch. The
# compile flags must support the minimum CPU type for each architecture but
# may tune support for more advanced processors.
@@ -25,6 +25,8 @@
. if ${MACHINE_ARCH} == "i386"
. if ${CPUTYPE} == "nocona"
CPUTYPE = prescott
+. elif ${CPUTYPE} == "core" || ${CPUTYPE} == "core2"
+CPUTYPE = prescott
. elif ${CPUTYPE} == "p4"
CPUTYPE = pentium4
. elif ${CPUTYPE} == "p4m"
@@ -50,7 +52,7 @@
CPUTYPE = athlon
. endif
. elif ${MACHINE_ARCH} == "amd64"
-. if ${CPUTYPE} == "prescott"
+. if ${CPUTYPE} == "prescott" || ${CPUTYPE} == "core2"
CPUTYPE = nocona
. endif
. endif
@@ -59,7 +61,7 @@
# Logic to set up correct gcc optimization flag. This must be included
# after /etc/make.conf so it can react to the local value of CPUTYPE
# defined therein. Consult:
-# http://gcc.gnu.org/onlinedocs/gcc/DEC-Alpha-Options.html
+# http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
# http://gcc.gnu.org/onlinedocs/gcc/IA-64-Options.html
# http://gcc.gnu.org/onlinedocs/gcc/RS-6000-and-PowerPC-Options.html
# http://gcc.gnu.org/onlinedocs/gcc/SPARC-Options.html
@@ -128,6 +130,12 @@
MACHINE_CPU = mmx k6 k5 i586 i486 i386
. elif ${CPUTYPE} == "k5"
MACHINE_CPU = k5 i586 i486 i386
+. elif ${CPUTYPE} == "c3"
+MACHINE_CPU = 3dnow mmx i586 i486 i386
+. elif ${CPUTYPE} == "c3-2"
+MACHINE_CPU = sse mmx i586 i486 i386
+. elif ${CPUTYPE} == "prescott"
+MACHINE_CPU = sse3 sse2 sse i686 mmx i586 i486 i386
. elif ${CPUTYPE} == "pentium4" || ${CPUTYPE} == "pentium4m" || ${CPUTYPE} == "pentium-m"
MACHINE_CPU = sse2 sse i686 mmx i586 i486 i386
. elif ${CPUTYPE} == "pentium3" || ${CPUTYPE} == "pentium3m"
@@ -159,6 +167,12 @@
. endif
.endif
+.if ${MACHINE_ARCH} == "arm" && defined(TARGET_BIG_ENDIAN)
+CFLAGS += -mbig-endian
+LDFLAGS += -mbig-endian
+LD += -EB
+.endif
+
# NB: COPTFLAGS is handled in /usr/src/sys/conf/kern.pre.mk
.if !defined(NO_CPU_CFLAGS)
More information about the Midnightbsd-cvs
mailing list