linux-mips
[Top] [All Lists]

Re: mips-tfile

To: Steven Liu <stevenliu@psdc.com>
Subject: Re: mips-tfile
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Sat, 19 May 2001 00:23:05 -0300
Cc: Keith M Wesolowski <wesolows@foobazco.org>, linux-mips@oss.sgi.com
In-reply-to: <000801c0dff4$3870ba60$dde0490a@pcs.psdc.com>; from stevenliu@psdc.com on Fri, May 18, 2001 at 04:42:37PM -0700
References: <000801c0a572$b7471e40$dde0490a@BANANA> <20010305205516.A25870@foobazco.org> <001201c0df37$2befb920$dde0490a@pcs.psdc.com> <20010517223139.A19781@bacchus.dhis.org> <000801c0dff4$3870ba60$dde0490a@pcs.psdc.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Fri, May 18, 2001 at 04:42:37PM -0700, Steven Liu wrote:

> I have a question regarding MIPS Makefile.
> 
> In the Makefile of the Linux build directory, there are two Macros of C
> compiler flags: HOSTCFLAGS and CFLAGS.
> 
> What are their purpose and difference? In another words, what is host gcc?
> Why do we use host gcc in building the target kernel?

During the build process of the kernel some tools like scripts/mkdep and
others are built which are running on the compile machine, not the target
machine.  The variable HOSTCFLAGS takes some extra compiler options to be
passed for such compilations.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>