All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] Convert CONFIG_BOOTCOUNT_LIMIT to Kconfig
Date: Sat, 10 Feb 2018 19:15:44 +0100	[thread overview]
Message-ID: <20180210191544.1a11201e@jawa> (raw)
In-Reply-To: <CAO5Uq5T+tyD+n=MsMdEdBu5cYmwU=5d_9iow9EGX=tAb9NFq8w@mail.gmail.com>

Hi Alex,

> On Sat, Feb 10, 2018 at 10:01 AM, Lukasz Majewski <lukma@denx.de>
> wrote:
> > Hi Alex,
> >  
> >> On Fri, Feb 9, 2018 at 10:50 PM, Lukasz Majewski <lukma@denx.de>
> >> wrote:  
> >> > diff --git a/configs/mx53ppd_defconfig
> >> > b/configs/mx53ppd_defconfig index 3fbca2a08c..b83cf72022 100644
> >> > --- a/configs/mx53ppd_defconfig
> >> > +++ b/configs/mx53ppd_defconfig
> >> > @@ -21,6 +21,7 @@ CONFIG_CMD_EXT4_WRITE=y
> >> >  CONFIG_CMD_FAT=y
> >> >  CONFIG_CMD_FS_GENERIC=y
> >> >  CONFIG_BOOTCOUNT=y
> >> > +CONFIG_BOOTCOUNT_LIMIT=y
> >> >  CONFIG_BOOTCOUNT_EXT=y
> >> >  CONFIG_SYS_BOOTCOUNT_EXT_DEVPART="0:5"
> >> >  CONFIG_NETDEVICES=y  
> >>
> >> ...
> >>  
> >> > diff --git a/drivers/bootcount/Kconfig
> >> > b/drivers/bootcount/Kconfig index c9d627cce2..cb6be73d52 100644
> >> > --- a/drivers/bootcount/Kconfig
> >> > +++ b/drivers/bootcount/Kconfig
> >> > @@ -11,6 +11,12 @@ config BOOTCOUNT
> >> >           number of times the board has booted on a number of
> >> > different persistent storage mediums.
> >> >
> >> > +config BOOTCOUNT_LIMIT
> >> > +       bool "Enable support for checking boot count limit"
> >> > +       help
> >> > +         Enable checking for exceeding the boot count limit.
> >> > +         More information:
> >> > http://www.denx.de/wiki/DULG/UBootBootCountLimit +
> >> >  if BOOTCOUNT
> >> >
> >> >  config BOOTCOUNT_EXT  
> >>
> >> Can't CONFIG_BOOTCOUNT and CONFIG_BOOTCOUNT_LIMIT be merged?  
> >
> > This patch was mostly generated by moveconfig utility.
> >  
> 
> Yeah, I've a similar patch series where I'd done the same thing.

I see :/

> 
> >  
> >>
> >>   config BOOTCOUNT
> >>          bool "Enable Boot count support"
> >>         help
> >>           Enable boot count support, which provides the ability to
> >> store the number of times the board has booted on a number of
> >> different persistent storage mediums.
> >>
> >> AFAICT mx53ppd is the only board which has CONFIG_BOOTCOUNT set,  
> >
> > I would use pragmatic approach here - leave this patch as is, and
> > prepare next one on top of it to replace CONFIG_BOOTCOUNT with
> > CONFIG_BOOTCOUNT_LIMIT (as the last one is used in many places).
> >  
> >> BOOTCOUNT is just used within Kconfig, not actually consumed
> >> either by a Makefile or any piece of code and should probably go?  
> >
> > Yes. It could be replaced with CONFIG_BOOTCOUNT_LIMIT.
> >  
> 
> Broadly what I had, only I'd reused the description from
> CONFIG_BOOTCOUNT. 

As you have written above - the CONFIG_BOOTCOUNT_LIMIT is used
in ./drivers/bootcount.

> I also worked through all the drivers, and made
> bootlimit configurable from Kconfig. But I see you're doing way more
> work around BOOTCOUNT, so I'll hold off on them.

Maybe you can share / send the code, which replaces CONFIG_BOOTCOUNT
with CONFIG_BOOTCOUNT_LIMIT?

Or even better, place such patch on top of this series?

Thanks in advance,

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180210/0f9addf6/attachment.sig>

  reply	other threads:[~2018-02-10 18:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-09 22:50 [U-Boot] [PATCH 1/2] Convert CONFIG_BOOTCOUNT_LIMIT to Kconfig Lukasz Majewski
2018-02-10  6:18 ` Alex Kiernan
2018-02-10 10:01   ` Lukasz Majewski
2018-02-10 12:21     ` Alex Kiernan
2018-02-10 18:15       ` Lukasz Majewski [this message]
2018-02-10 20:53         ` Alex Kiernan
2018-02-11 19:23 ` Alex Kiernan
2018-02-12  7:56 ` [U-Boot] Antwort: " Hannes Schmelzer
2018-02-15 15:09 ` [U-Boot] [U-Boot, " Tom Rini

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=20180210191544.1a11201e@jawa \
    --to=lukma@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 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.