Date: Mon, 6 Nov 2006 08:23:43 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 109346 for review Message-ID: <200611060823.kA68NhoP032520@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=109346 Change 109346 by imp@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611060823.kA68NhoP032520>