From 287beaed7f8ceff679c57664d4da008c6234edfd Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Mon, 11 Apr 2011 12:46:40 -0700 Subject: [PATCH] Add default arch to fix compiling outside emake Change-Id: I225c2ee7e703aad961c50ec8988ed2466886f266 R=wfrichar@chromium.org BUG=none TEST=make && make runtests Review URL: http://codereview.chromium.org/6820018 --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index d12639d02a..f1c4b6012a 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,11 @@ ifneq (${FIRMWARE_CONFIG_PATH},) include ${FIRMWARE_CONFIG_PATH} endif +# Fix compiling directly on host (outside of emake) +ifeq ($(ARCH),) +export ARCH=amd64 +endif + ifeq ($(FIRMWARE_ARCH),) CFLAGS += -DCHROMEOS_ENVIRONMENT endif