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 17:53:08 -0500	[thread overview]
Message-ID: <4ADCEDD4.8030201@freescale.com> (raw)
In-Reply-To: <20091019223358.88B0FC88C4@gemini.denx.de>

Wolfgang Denk wrote:
> Dear Scott Wood,
> 
> In message <20091019212409.GA31322@loki.buserror.net> you wrote:
>> 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.
> 
> I have to admit that I don't see the problem. When I explicitly ask
> for a specific ARCH setting on the command line (versus using some
> setting I inherited from the envrionment, eventually even unaware of
> the current value), then I do want to use that. So the current code
> seems to do what I would expect from it.
> 
> Maybe my expectations are whacky, though.
> 
> I tend to NAK this one.

For the benefit of those who weren't on the IRC channel when we 
discussed this, I'll restate my objection.  I think you're reading too 
much into the difference between setting ARCH with an environment 
variable and setting it on the command line.  The number of users who 
are going to be confused by this (at least one, since I was) is greater 
than the number of users who would have done something useful by truly 
forcing ARCH=powerpc (zero without other changes, since all it gets you 
is a failed build).

The way it is now, it looks as if ARCH=powerpc is accepted as an alias 
for ARCH=ppc.  If this is not intended to be the case, and it's only 
intended to be accepted as an alias if you use one specific method of 
passing arguments (which again I recommend against, as it's confusing 
and not actually useful), then can we at least add a comment to the part 
of the makefile that does the rewriting clarifying this?

Printing a warning if ARCH is still powerpc probably wouldn't hurt 
either, even in the absence of any rewriting.

-Scott

  reply	other threads:[~2009-10-19 22:53 UTC|newest]

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