All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/5] autoboot: fix a bunch of misconversion of CONFIG_BOOTDELAY
Date: Fri, 10 Jun 2016 14:41:44 -0400	[thread overview]
Message-ID: <20160610184144.GB11619@bill-the-cat> (raw)
In-Reply-To: <CAK7LNAQYTHGRGNzc-hmPE=Xbz-gJOc5TujPJY_tJPz9XOvZA5A@mail.gmail.com>

On Sat, Jun 11, 2016 at 12:48:54AM +0900, Masahiro Yamada wrote:
> 2016-06-11 0:43 GMT+09:00 Tom Rini <trini@konsulko.com>:
> > On Sat, Jun 11, 2016 at 12:37:49AM +0900, Masahiro Yamada wrote:
> >> 2016-06-11 0:28 GMT+09:00 Tom Rini <trini@konsulko.com>:
> >> > On Sat, Jun 11, 2016 at 12:20:20AM +0900, Masahiro Yamada wrote:
> >> >
> >> >> Commit bb597c0eeb7e ("common: bootdelay: move CONFIG_BOOTDELAY into
> >> >> a Kconfig option") is wrong in multiple ways.
> >> >>
> >> >> First of all, it made tons of misconversion.
> >> >>
> >> >> [1] CONFIG_BOOTDELAY=-1 all gone
> >> >> [2] CONFIG_BOOTDELAY=1 all gone
> >> >> [3] CONFIG_BOOTDELAY=2 all gone
> >> >>
> >> >> They all disappeared, and all of the misconverted boards now use the
> >> >> default value, CONFIG_BOOTDELAY=0, which came from the Kconfig entry.
> >> >>
> >> >> I assume some reasons for the misconversion.
> >> >>
> >> >> For [1], due to the bug of tools/scripts/define2mk.sed (now fixed),
> >> >>   #define CONFIG_BOOTDELAY -1
> >> >> was converted to
> >> >>   CONFIG_BOOTDELAY="-1"
> >> >> in the include/autoconf.mk
> >> >>
> >> >> So, the tools/moveconfig.py considered it as a string option, and
> >> >> failed to move it.
> >> >>
> >> >> For [2], as you see in the comment of tools/scripts/define2mk.sed,
> >> >>   #define CONFIG_BOOTDELAY 1
> >> >> is converted to
> >> >>   CONFIG_BOOTDELAY=y
> >> >> in the include/autoconf.mk
> >> >>
> >> >> This needs a special care because we do not know whether we are moving
> >> >> a bool option with value y or an integer option with value 1.
> >> >>
> >> >> The patch for this issue had already been on the Patchwork, but not
> >> >> merged yet.
> >> >>
> >> >> I do not understand the reason for [3] at all.
> >> >>
> >> >> Anyway, I ran the tool based on commit 3191d8408053 (=immediately
> >> >> prior to the bad commit) and generated this patch.  Of course, I made
> >> >> sure to not touch the defconfigs added after that commit.
> >> >
> >> > Ug.  I also just noticed this now and started fixing, but I didn't see
> >> > [2].  I saw [3] which is because the wrong default value was passed to
> >> > moveconfig.py.  I also fixed up a number of other platforms that I'm
> >> > also adding and testing.  So, I'm going to grab most of your series, and
> >> > the outstanding updates to moveconfig.py, and then re-generate my patch
> >> > that fixes more new platforms as I bring them in.  Thanks for working on
> >> > this!
> >>
> >> Please hold on applying moveconfig patches.
> >>
> >> One patch in my series will be replaced with Joe's one.
> >>
> >> And, I am fixing small issues locally.
> >>
> >> I will arrange everything and send a pull request
> >> when it is ready.
> >
> > OK.  Please pick up most of this set of 5 but I'll re-run moveconfig.py
> > on top (since I locally undo configs/ and include/ on bb597c0eeb and
> > then migrate everyone again) so it catches new configs that've come in
> > since.  Thanks again!
> 
> Sorry, miscommunication..
> 
> I was talking about moveconfig in my previous message.
> 
> I will collect moveconfig patches (from me and Joe)
> and send a pull-request only for moveconfig.
> 
> 
> 
> I want you to arrange everything about the CONFIG_BOOTDELAY issues.

OK, understood, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160610/1f21144c/attachment.sig>

  reply	other threads:[~2016-06-10 18:41 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-10 15:20 [U-Boot] [PATCH 0/5] Urgent fixes for misconverted CONFIG_BOOTDELAY Masahiro Yamada
2016-06-10 15:20 ` [U-Boot] [PATCH 1/5] ARM: stm32: remove unused CONFIG_AUTOBOOT Masahiro Yamada
2016-06-10 15:20 ` [U-Boot] [PATCH 2/5] autoboot: follow-up cleanup after CONFIG_BOOTDELAY moves Masahiro Yamada
2016-06-13  4:45   ` Heiko Schocher
2016-06-10 15:20 ` [U-Boot] [PATCH 3/5] tools: fix define2mk.sed to not add quotes around negative integers Masahiro Yamada
2016-06-13  4:47   ` Heiko Schocher
2016-06-10 15:20 ` [U-Boot] [PATCH 4/5] autoboot: fix a bunch of misconversion of CONFIG_BOOTDELAY Masahiro Yamada
2016-06-10 15:28   ` Tom Rini
2016-06-10 15:34     ` Joe Hershberger
2016-06-10 15:37       ` Tom Rini
2016-06-10 15:37     ` Masahiro Yamada
2016-06-10 15:43       ` Tom Rini
2016-06-10 15:48         ` Masahiro Yamada
2016-06-10 18:41           ` Tom Rini [this message]
2016-06-10 15:20 ` [U-Boot] [PATCH 5/5] autoboot: add CONFIG_AUTOBOOT to allow to not compile autoboot.c Masahiro Yamada
2016-06-10 21:55   ` Soeren Moch
2016-06-10 22:19     ` Tom Rini
2016-06-10 22:38       ` Soeren Moch
2016-06-10 23:13         ` Tom Rini
2016-06-11  6:57           ` Masahiro Yamada

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=20160610184144.GB11619@bill-the-cat \
    --to=trini@konsulko.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 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.