public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jerry Van Baren <gvb.uboot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] granularity of bootm subcommands
Date: Fri, 08 Aug 2008 19:58:15 -0400	[thread overview]
Message-ID: <489CDD97.4000009@gmail.com> (raw)
In-Reply-To: <20080808212711.GA3593@ld0162-tx32.am.freescale.net>

Scott Wood wrote:
> On Fri, Aug 08, 2008 at 08:37:47AM -0500, Kumar Gala wrote:
>> Finally I'd like to change the subcommands to be prefixed with '_' to  
>> make parsing easier:
>>    bootm _start <args>
>>    bootm _prep
>>    bootm _load_os
>>    ...
> 
> Ick.  How about using a different name than "bootm"?
> 
> -Scott

Yeah, reusing "bootm" may be too clever.

What I had in mind for overloading bootm is to do strncmp() operations 
for each of the subcommands (and where none of the subcommands could be 
interpreted as hex numbers - i.e. have a letter g-z or "_" in it) and, 
if none of the valid subcommands passed, do a legacy implementation 
where the three parameters are parsed as hex (or "-" for the ramdisk).

Again, while I like the concept of using "bootm" since we are familiar 
with it (and I don't have a better name), I would not be adverse to 
using a different command name since the New Improved "bootm" will be 
substantially different than bootm-classic.

Best regards,
gvb

      reply	other threads:[~2008-08-08 23:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-08 13:37 [U-Boot] granularity of bootm subcommands Kumar Gala
2008-08-08 14:42 ` Jerry Van Baren
2008-08-08 15:14   ` Kumar Gala
2008-08-08 16:55     ` Jerry Van Baren
2008-08-08 23:08       ` Wolfgang Denk
2008-08-08 21:27 ` Scott Wood
2008-08-08 23:58   ` Jerry Van Baren [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=489CDD97.4000009@gmail.com \
    --to=gvb.uboot@gmail.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