public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] Don't let the command-line ARCH=powerpc override our	redefinition to ppc.
Date: Mon, 19 Oct 2009 16:24:09 -0500	[thread overview]
Message-ID: <20091019212409.GA31322@loki.buserror.net> (raw)

The override keyword is needed for make to take our version over the one
specified on the command line, and remove it from the list of command line
overrides that are passed to submakes.  IMHO, the combination of "export"
and "override" ought to do this automatically, but oh well.

Signed-off-by: Scott Wood <scottwood@freescale.com>
---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index bed9469..f9e7a50 100644
--- a/Makefile
+++ b/Makefile
@@ -134,7 +134,8 @@ unexport CDPATH
 #########################################################################
 
 ifeq ($(ARCH),powerpc)
-ARCH = ppc
+override ARCH = ppc
+MAKEOVERRIDES := $(MAKEOVERRIDES:ARCH%=)
 endif
 
 # The "tools" are needed early, so put this first
-- 
1.6.4.4

             reply	other threads:[~2009-10-19 21:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-19 21:24 Scott Wood [this message]
2009-10-19 22:33 ` [U-Boot] [PATCH 1/2] Don't let the command-line ARCH=powerpc override our redefinition to ppc Wolfgang Denk
2009-10-19 22:53   ` Scott Wood
2009-10-26 22:21     ` 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=20091019212409.GA31322@loki.buserror.net \
    --to=scottwood@freescale.com \
    --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