PERFORCE change 109346 for review
Warner Losh
imp at FreeBSD.org
Mon Nov 6 08:23:45 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=109346
Change 109346 by imp at imp_lighthouse on 2006/11/06 08:23:26
Take a page from NetBSD and introduce MACHINE_CPU. This is the CPU
family derived from the MACHINE_ARCH. MACHINE_ARCH
necessarily includes endian information, because arm big endian and
arm little endian binaries are different. mips64 and mips binaries
are different, so MACHINE_ARCH might be "mips64el" and MACHINE_CPU
would be plain old "mips". Basically, any family of cpus that
one set of source files can support. Initially, this will be
arm (little endian) and armeb (big endian) both mapping to arm for
this. Likewise with mipsel and mipseb both mapping to mips (this
is a favor for the mips branch).
Affected files ...
.. //depot/projects/arm/src/share/mk/bsd.own.mk#6 edit
Differences ...
==== //depot/projects/arm/src/share/mk/bsd.own.mk#6 (text+ko) ====
@@ -109,6 +109,11 @@
.include "${SRCCONF}"
.endif
+#
+# CPU model, derived from MACHINE_ARCH
+#
+MACHINE_CPU= ${MACHINE_ARCH:C/mipse[bl]/mips/:S/armeb/arm/}
+
# Binaries
BINOWN?= root
BINGRP?= wheel
More information about the p4-projects
mailing list