linux-mips
[Top] [All Lists]

Re: [PATCH] fix mips/Makefile to support CROSS_COMPILE from environment

To: Tim Bird <tim.bird@am.sony.com>
Subject: Re: [PATCH] fix mips/Makefile to support CROSS_COMPILE from environment var
From: Thiemo Seufer <ths@networkno.de>
Date: Thu, 4 May 2006 23:35:39 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <445A6F51.90308@am.sony.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <445A577D.7090507@am.sony.com> <20060504205517.GF18218@networkno.de> <445A6F51.90308@am.sony.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11+cvs20060403
Tim Bird wrote:
> Thiemo Seufer wrote:
> > It looks like the other arch-specific Makefiles also override the
> > environment.
> 
> 4 other arches I work with don't.
> 
> > To work around the problem, you can disable
> > CONFIG_CROSSCOMPILE and define CROSS_COMPILE in the environment.
> 
> I thought that might be the case, but that's pretty broken IMHO.
> It's counterintuitive and undocumented.
> 
> > 
> > Strangely enough, the help for CONFIG_CROSSCOMPILE already explains
> > that.
> 
> Here's the help from my Kconfig.debug:
> 
>           Say Y here if you are compiling the kernel on a different
>           architecture than the one it is intended to run on.
> 
> Am I missing something?

Update to a newer version:

config CROSSCOMPILE
        bool "Are you using a crosscompiler"
        help
          Say Y here if you are compiling the kernel on a different
          architecture than the one it is intended to run on.  This is just a
          convenience option which will select the appropriate value for
          the CROSS_COMPILE make variable which otherwise has to be passed on
          the command line from mips-linux-, mipsel-linux-, mips64-linux- and
          mips64el-linux- as appropriate for a particular kernel configuration.
          You will have to pass the value for CROSS_COMPILE manually if the
          name prefix for your tools is different.


Thiemo

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