[Top] [All Lists]

Re: mips-tfile

To: Steven Liu <>
Subject: Re: mips-tfile
From: Ralf Baechle <>
Date: Sat, 19 May 2001 00:23:05 -0300
Cc: Keith M Wesolowski <>,
In-reply-to: <000801c0dff4$3870ba60$>; from on Fri, May 18, 2001 at 04:42:37PM -0700
References: <000801c0a572$b7471e40$dde0490a@BANANA> <> <001201c0df37$2befb920$> <> <000801c0dff4$3870ba60$>
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.


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