kern/126926: [build] [patch] Add MACHINE to dmesg
Gavin Atkinson
gavin at FreeBSD.org
Mon Feb 23 04:50:04 PST 2009
The following reply was made to PR kern/126926; it has been noted by GNATS.
From: Gavin Atkinson <gavin at FreeBSD.org>
To: Yoshihiro Ota <ota at j.email.ne.jp>
Cc: bug-followup at 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
More information about the freebsd-bugs
mailing list