]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Fix HOSTARCH handling.
authorWolfgang Denk <wd@pollux.denx.de>
Tue, 6 Mar 2007 17:01:47 +0000 (18:01 +0100)
committerWolfgang Denk <wd@denx.de>
Tue, 6 Mar 2007 17:01:47 +0000 (18:01 +0100)
Patch by Mike Frysinger, Mar 05 2007

Makefile

index 358d1817c94e2042df867c98494325ba92a50963..3809de0a411b9f2d6e2fdd1b2558c309eec0d725 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -118,7 +118,7 @@ include $(OBJTREE)/include/config.mk
 export ARCH CPU BOARD VENDOR SOC
 
 ifndef CROSS_COMPILE
-ifeq ($(HOSTARCH),ppc)
+ifeq ($(HOSTARCH),$(ARCH))
 CROSS_COMPILE =
 else
 ifeq ($(ARCH),ppc)
@@ -128,12 +128,8 @@ ifeq ($(ARCH),arm)
 CROSS_COMPILE = arm-linux-
 endif
 ifeq ($(ARCH),i386)
-ifeq ($(HOSTARCH),i386)
-CROSS_COMPILE =
-else
 CROSS_COMPILE = i386-linux-
 endif
-endif
 ifeq ($(ARCH),mips)
 CROSS_COMPILE = mips_4KC-
 endif