From owner-p4-projects@FreeBSD.ORG Mon Nov 6 08:23:45 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4B49616A47E; Mon, 6 Nov 2006 08:23:45 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E75916A403 for ; Mon, 6 Nov 2006 08:23:45 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDC3743D67 for ; Mon, 6 Nov 2006 08:23:43 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kA68Nhet032528 for ; Mon, 6 Nov 2006 08:23:43 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kA68NhoP032520 for perforce@freebsd.org; Mon, 6 Nov 2006 08:23:43 GMT (envelope-from imp@freebsd.org) Date: Mon, 6 Nov 2006 08:23:43 GMT Message-Id: <200611060823.kA68NhoP032520@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 109346 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Nov 2006 08:23:45 -0000 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