From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 23 12:50:03 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CBCD51065673 for ; Mon, 23 Feb 2009 12:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9F22E8FC12 for ; Mon, 23 Feb 2009 12:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1NCo34F040394 for ; Mon, 23 Feb 2009 12:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1NCo3eX040391; Mon, 23 Feb 2009 12:50:03 GMT (envelope-from gnats) Date: Mon, 23 Feb 2009 12:50:03 GMT Message-Id: <200902231250.n1NCo3eX040391@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Gavin Atkinson Cc: Subject: Re: kern/126926: [build] [patch] Add MACHINE to dmesg X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gavin Atkinson List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 12:50:04 -0000 The following reply was made to PR kern/126926; it has been noted by GNATS. From: Gavin Atkinson To: Yoshihiro Ota Cc: bug-followup@FreeBSD.org Subject: Re: kern/126926: [build] [patch] Add MACHINE to dmesg Date: Mon, 23 Feb 2009 12:42:31 +0000 On Thu, 2009-02-19 at 22:27 -0500, Yoshihiro Ota wrote: > Hi Gavin, > > "man make" and "man build" confused me a lot. > > man make: > > MACHINE Name of the machine architecture make is running on, > obtained from the MACHINE environment variable, or > through uname(3) if not defined. > > MACHINE_ARCH Name of the machine architecture make was compiled for, > defined at compilation time. > > man build: > TARGET The target hardware platform. This is analogous to the > ``uname -m'' output. This is necessary to cross-build > some target architectures. For example, cross-building > for PC98 machines requires TARGET_ARCH=i386 and > TARGET=pc98. If not set, TARGET defaults to the current > hardware platform. > > TARGET_ARCH The target machine processor architecture. This is > analogous to the ``uname -p'' output. Set this to > cross-build for a different architecture. If not set, > TARGET_ARCH defaults to the current machine architec- > ture. > > So, it seems this is where these values are set to corss-builds. > > # Common environment for world related stages > CROSSENV= MAKEOBJDIRPREFIX=${OBJTREE} \ > MACHINE_ARCH=${TARGET_ARCH} \ > MACHINE=${TARGET} \ > CPUTYPE=${TARGET_CPUTYPE} \ > GROFF_BIN_PATH=${WORLDTMP}/legacy/usr/bin \ > GROFF_FONT_PATH=${WORLDTMP}/legacy/usr/share/groff_font \ > GROFF_TMAC_PATH=${WORLDTMP}/legacy/usr/share/tmac > > Is that right? I'll be honest: I'm confused now, and don't actually know the answer any more! I'll try to figure out whether MACHINE is the correct thing I should be using, and if so, why. Gavin