All of lore.kernel.org
 help / color / mirror / Atom feed
* MIPS Makefile not picking up CROSS_COMPILE from environment setting
@ 2007-10-18 18:46 Wolfgang Denk
  2007-10-19  2:47 ` Atsushi Nemoto
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Wolfgang Denk @ 2007-10-18 18:46 UTC (permalink / raw)
  To: linux-mips

Hello,

I noticed that, unlike for other architectures like ARM  or  PowerPC,
the  MIPS Makefile does not pick up the settings from a CROSS_COMPILE
environment variable, at least not with many (all?) default  configu-
rations.

This makes no sense to me - is there an intention behind it?

Or should I submit a patch  to  use  an  environment  setting  if  it
exists, i. e. somthing like this:

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 08355eb..caa04a0 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -43,7 +43,7 @@ UTS_MACHINE		:= mips64
 endif
 
 ifdef CONFIG_CROSSCOMPILE
-CROSS_COMPILE		:= $(tool-prefix)
+CROSS_COMPILE		?= $(tool-prefix)
 endif
 
 ifdef CONFIG_32BIT



Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
The explanation requiring the fewest assumptions is the  most  likely
to be correct.                                    -- William of Occam

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-10-22 14:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-18 18:46 MIPS Makefile not picking up CROSS_COMPILE from environment setting Wolfgang Denk
2007-10-19  2:47 ` Atsushi Nemoto
2007-10-19  7:16 ` Geert Uytterhoeven
2007-10-21  8:37   ` Geert Uytterhoeven
2007-10-22 13:21     ` Ralf Baechle
2007-10-22 14:30       ` Geert Uytterhoeven
2007-10-19 11:18 ` Ralf Baechle
2007-10-19 12:39   ` Maciej W. Rozycki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.