Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2009 03:30:04 GMT
From:      Yoshihiro Ota <ota@j.email.ne.jp>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/126926: [build] [patch] Add MACHINE to dmesg
Message-ID:  <200902200330.n1K3U4jo087803@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: Yoshihiro Ota <ota@j.email.ne.jp>
To: bug-followup@FreeBSD.org
Cc: gavin@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902200330.n1K3U4jo087803>