All of lore.kernel.org
 help / color / mirror / Atom feed
From: Igor Grinberg <grinberg@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] Kconfig: add CONFIG_BOOTDELAY
Date: Mon, 12 Oct 2015 21:52:47 +0300	[thread overview]
Message-ID: <561C017F.20306@compulab.co.il> (raw)
In-Reply-To: <CAPnjgZ2mvKMFafWuJJSL=pExCb3Q_4X6YUh4QaeMiJqG6_VgnQ@mail.gmail.com>

Hi Simon,

On 10/09/15 12:36, Simon Glass wrote:
> Hi Igor,
> 
> On 8 October 2015 at 20:10, Igor Grinberg <grinberg@compulab.co.il> wrote:
>> Add CONFIG_BOOTDELAY to the Kconfig.
>> Default it to 3 seconds according to the majority of configs.
>>
>> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
>> Cc: Simon Glass <sjg@chromium.org>
>> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
>> ---
>>  common/Kconfig | 10 ++++++++++
>>  1 file changed, 10 insertions(+)
>>
>> diff --git a/common/Kconfig b/common/Kconfig
>> index d98eb19..e13d255 100644
>> --- a/common/Kconfig
>> +++ b/common/Kconfig
>> @@ -100,6 +100,16 @@ config AUTOBOOT_STOP_STR_SHA256
>>           string / password matches a values that is encypted via
>>           a SHA256 hash and saved in the environment.
>>
>> +config BOOTDELAY
>> +       int "Seconds to delay before autobooting"
>> +       default 3
>> +       help
>> +         Delay before automatically booting the default image;
>> +         set to -1 to disable autoboot.
>> +         set to -2 to autoboot with no delay and not check for abort
>> +         (even when CONFIG_ZERO_BOOTDELAY_CHECK is defined).
>> +         See doc/README.autoboot for additional information.
>> +
>>  endmenu
>>
>>  comment "Commands"
>> --
>> 2.4.9
>>
> 
> It's great that you are taking on these difficult ones.

Thanks...

> 
> IMO we should split this config into a few parts:
> 
> - enabling the boot-delay feature
> - setting the boot-delay time
> - whether to allow abort
> - whether to allow abort even when boot delay is 0
> 
> The way it is written -2 sounds like a weird case that would be better
> merged with the last one above.

I completely agree with you. This is indeed the better way, AFAICS.
Although, I'm not sure I can work on this right now.
How about having it currently the way above and adjusting it later
(when one/me has the time to do it)?


-- 
Regards,
Igor.

  reply	other threads:[~2015-10-12 18:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-08 19:10 [U-Boot] [PATCH 0/2] config: move CONFIG_BOOTDELAY to defconfig Igor Grinberg
2015-10-08 19:10 ` [U-Boot] [PATCH 1/2] Kconfig: add CONFIG_BOOTDELAY Igor Grinberg
2015-10-09  9:36   ` Simon Glass
2015-10-12 18:52     ` Igor Grinberg [this message]
2015-10-12 18:57       ` Simon Glass
2015-10-08 19:10 ` [U-Boot] [PATCH 2/2] config: move CONFIG_BOOTDELAY to defconfig Igor Grinberg

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=561C017F.20306@compulab.co.il \
    --to=grinberg@compulab.co.il \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.