From: Wolfgang Denk Date: Tue, 6 Mar 2007 17:01:47 +0000 (+0100) Subject: Fix HOSTARCH handling. X-Git-Tag: v1.3.0-rc1~151 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a5284efd125967675b2e9c6ef7b95832268ad360;p=u-boot Fix HOSTARCH handling. Patch by Mike Frysinger, Mar 05 2007 --- diff --git a/Makefile b/Makefile index 358d1817c9..3809de0a41 100644 --- 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