linux-mips
[Top] [All Lists]

Re: [PATCH] allow CROSS_COMPILE override

To: Jun Sun <jsun@mvista.com>
Subject: Re: [PATCH] allow CROSS_COMPILE override
From: Daniel Jacobowitz <dan@debian.org>
Date: Thu, 20 Feb 2003 16:57:26 -0500
Cc: linux-mips@linux-mips.org
In-reply-to: <20030220124703.H7466@mvista.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20030220124703.H7466@mvista.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.1i
On Thu, Feb 20, 2003 at 12:47:03PM -0800, Jun Sun wrote:
> Anybody would object this?  It allows one to override
> CROSS_COMPILE from command line or top-level Makefile.
> 
> Jun
> 

Silly question: why does this matter if CROSS_COMPILE is on the command
line?  Command line definitions override anything in the makefile.  Is
it falling off the command line in a recursive make?

> diff -Nru linux/arch/mips/Makefile.orig linux/arch/mips/Makefile
> --- linux/arch/mips/Makefile.orig     Thu Feb 20 10:49:18 2003
> +++ linux/arch/mips/Makefile  Thu Feb 20 12:18:53 2003
> @@ -23,7 +23,9 @@
>  endif
>  
>  ifdef CONFIG_CROSSCOMPILE
> -CROSS_COMPILE        = $(tool-prefix)
> +  ifndef CROSS_COMPILE
> +    CROSS_COMPILE    = $(tool-prefix)
> +  endif
>  endif
>  
>  #


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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