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-Users] New commands
Date: Wed, 16 May 2007 22:01:30 +0200	[thread overview]
Message-ID: <20070516200130.ACE4F353AF1@atlas.denx.de> (raw)
In-Reply-To: Your message of "Wed, 16 May 2007 10:02:03 PDT." <406A31B117F2734987636D6CCC93EE3C017BA168@ehost011-3.exch011.intermedia.net>

In message <406A31B117F2734987636D6CCC93EE3C017BA168@ehost011-3.exch011.intermedia.net> you wrote:
>
> There is actually an approach in place, virtually converting single
> u-boot command into root of command tree. See for example how "nand"
> command (or shall I say "nand" tree?) is implemented. Wolfgang, do you
> approve this way of doing or it had sneaked into u-boot "illegally"?

It is perfectly OK where logical groups of commands exist  where  one
command makes no sense without the other(s).

> 1) Strictly hierarchical "CISCO-like" CLI instead of "flat" u-boot
> scheme. There are several existing implementations of such CLI which can
> be used.

The CLI is not a problem here. We are talking about how to enable
certain features or feature sets, or disable them.

> 2) Further advance of "bash"-like shell (hush is used in u-boot right

Again, this has nothing to do with the current topic (although it is a
perfectly legal qustion in itself).

> now). Existing shell lacks many features one is used to see in
> Linux/Unix shells. It's highly questionable though whether it makes
> sense to add u-boot specific commands in there, making u-boot shell
> scripts incompatible with Linux ones. 

You are off track. Adding  commands  is  trivial.  Just  do  it.  The
problem  is how toadd commands in a way that they are not compiled at
all when not explicitely selected in the board configuration.

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
Is the glass half empty, half full, or twice as large as it needs to

      parent reply	other threads:[~2007-05-16 20:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-16 10:23 [U-Boot-Users] cache and buffer problems chark_uboot at 126.com
2007-05-16 10:46 ` [U-Boot-Users] New commands Monstr at seznam.cz
2007-05-16 12:26   ` Wolfgang Denk
2007-05-16 13:15     ` Monstr at seznam.cz
2007-05-16 17:02     ` Leonid
2007-05-16 18:42       ` Jerry Van Baren
2007-05-16 19:17         ` Leonid
2007-05-16 20:01       ` 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=20070516200130.ACE4F353AF1@atlas.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