From: Kumar Gala <galak@kernel.crashing.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Default to HOSTARCH if ARCH isn't specified
Date: Mon, 20 Apr 2009 12:03:37 -0500 [thread overview]
Message-ID: <1240247017-1069-1-git-send-email-galak@kernel.crashing.org> (raw)
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 <galak@kernel.crashing.org>
---
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
next reply other threads:[~2009-04-20 17:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-20 17:03 Kumar Gala [this message]
2009-04-20 18:56 ` [U-Boot] [PATCH] Default to HOSTARCH if ARCH isn't specified Jean-Christophe PLAGNIOL-VILLARD
2009-04-20 20:36 ` Wolfgang Denk
2009-04-20 20:49 ` Scott Wood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1240247017-1069-1-git-send-email-galak@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox