From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kumar Gala Date: Mon, 20 Apr 2009 12:03:37 -0500 Subject: [U-Boot] [PATCH] Default to HOSTARCH if ARCH isn't specified Message-ID: <1240247017-1069-1-git-send-email-galak@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Its possible to build natively on several platforms so we might not explicitly set ARCH but detect it via HOSTARCH. As such there are some things that expect ARCH to be set to work correctly. Signed-off-by: Kumar Gala --- Makefile | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index e91c051..c56d6db 100644 --- a/Makefile +++ b/Makefile @@ -137,6 +137,10 @@ ifeq ($(ARCH),powerpc) ARCH = ppc endif +ifndef ARCH +ARCH = $(HOSTARCH) +endif + ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) # load ARCH, BOARD, and CPU configuration -- 1.6.0.6