Date: Mon, 23 Feb 2009 12:50:03 GMT From: Gavin Atkinson <gavin@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/126926: [build] [patch] Add MACHINE to dmesg Message-ID: <200902231250.n1NCo3eX040391@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/126926; it has been noted by GNATS. From: Gavin Atkinson <gavin@FreeBSD.org> To: Yoshihiro Ota <ota@j.email.ne.jp> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902231250.n1NCo3eX040391>