kern/126926: [build] [patch] Add MACHINE to dmesg
Yoshihiro Ota
ota at j.email.ne.jp
Thu Feb 19 19:30:04 PST 2009
The following reply was made to PR kern/126926; it has been noted by GNATS.
From: Yoshihiro Ota <ota at j.email.ne.jp>
To: bug-followup at FreeBSD.org
Cc: gavin at freebsd.org
Subject: Re: kern/126926: [build] [patch] Add MACHINE to dmesg
Date: Thu, 19 Feb 2009 22:27:16 -0500
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?
Regards,
Hiro
More information about the freebsd-bugs
mailing list