public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] Add env vars describing U-Boot target board
Date: Mon, 21 May 2012 23:53:23 +0200	[thread overview]
Message-ID: <20120521215323.7348720004B@gemini.denx.de> (raw)
In-Reply-To: <4FBA95F6.2020009@wwwdotorg.org>

Dear Stephen Warren,

In message <4FBA95F6.2020009@wwwdotorg.org> you wrote:
>
> > Please make this optional - I don't want to have this enforced on all
> > boards, whether they want it or not.
> 
> Thanks for taking a look. The variables are already optional; you need
> to set CONFIG_ENV_VAR_* in order for common/env_*.c to add those
> variables to the default environment. Is that OK?

Ah, now I see what you mean.  But this is awkward.  Why do we need
both CONFIG_ENV_VAR_<foo> and <foo> ?  Also note that these BOARD_*
names are kind of polluting the name space.  I don't like that.

Just use a single variable with an appropriate value for each of
these settings.  And don't pass these on the command line (which is
already unreadable enough), but add it to the auto-generated config
file.

And make the whole feature user selectable - I think it makes no sense
if you have to individually enable all the 5 settings.


Hm... thinking about this, I also don't like the "board_*" prefix.
What you actually have are names, i. e. it should probably read
"soc_name" instead of "board_soc", etc.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Accident: A condition in which presence of mind is good, but  absence
of body is better.

      reply	other threads:[~2012-05-21 21:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-16 17:36 [U-Boot] [PATCH 1/2] Add env vars describing U-Boot target board Stephen Warren
2012-05-16 17:36 ` [U-Boot] [PATCH 2/2] tegra: enabled CONFIG_ENV_VAR_BOARD_NAME/VENDOR/SOC Stephen Warren
2012-05-16 18:05 ` [U-Boot] [PATCH 1/2] Add env vars describing U-Boot target board Otavio Salvador
2012-05-21 19:00 ` Wolfgang Denk
2012-05-21 19:22   ` Stephen Warren
2012-05-21 21:53     ` Wolfgang Denk [this message]

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=20120521215323.7348720004B@gemini.denx.de \
    --to=wd@denx.de \
    --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