public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 1/2] arch: Make board selection choices optional
Date: Wed, 29 Jul 2015 17:25:41 +0000	[thread overview]
Message-ID: <1438190740.16101.21.camel@synopsys.com> (raw)
In-Reply-To: <CAK7LNASTgpY017rUxrO7muMONfjvUYRFYTP0bF4uoJTDhW6HWw@mail.gmail.com>

Hi Joe,

On Wed, 2015-05-13 at 10:11 +0900, Masahiro Yamada wrote:
> Hi Joe,
> 
> 2015-05-13 7:12 GMT+09:00 Tom Rini <trini@konsulko.com>:
> 
> > diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
> > index c044ad4..85fddd2 100644
> > --- a/arch/arc/Kconfig
> > +++ b/arch/arc/Kconfig
> > @@ -132,6 +132,7 @@ config ARC_CACHE_LINE_SHIFT
> > 
> >  choice
> >         prompt "Target select"
> > +       optional
> > 
> >  config TARGET_DUMMY
> >         bool "Dummy target"
> 
> 
> You do not need to add "optional" to the ARC board select
> because Alexey intentionally added TARGET_DUMMY
> to the top of the board select list.
> 
> This is another solution to not lose any CONFIG_BOARD_
> by savedefconfig although I personally prefer this idea very much.

Looks like I discover an issue that happens with that change.
If one attempts to do something like:
------------------>8------------------
"yes "" | make oldconfig" on defconfig
------------------>8------------------
(that trick is done by automated build frameworks like Buildroot that prefer to
not do "xxx_defconfig" explicitly, but modify that defconfig and later expand it
to a full-scale .config) target won't be set because on prompt you'll see
something like that:
------------------>8------------------
Target select [N/y] (NEW)
------------------>8------------------

See default answer here is No!
Which later on attempt to do a build causes:
------------------>8------------------
$ make
scripts/kconfig/conf --silentoldconfig Kconfig
#
# configuration written to .config
#
  CHK     include/config.h
  UPD     include/config.h
  GEN     include/autoconf.mk
In file included from ./include/common.h:18:0:
include/config.h:5:22: fatal error: configs/.h: No such file or directory
 #include <configs/.h>
                      ^
compilation terminated.
scripts/Makefile.autoconf:72: recipe for target 'include/autoconf.mk' failed
make[1]: *** [include/autoconf.mk] Error 1
------------------>8------------------

If "optional" is removed from "choice -> prompt "Target select"" then
target is selected by default and build runs smoothly.

Any thoughts on how to fix it?

-Alexey

  reply	other threads:[~2015-07-29 17:25 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-11 17:08 [U-Boot] [PATCH] Clean all defconfigs with savedefconfig Joe Hershberger
2015-05-11 18:32 ` Joe Hershberger
2015-05-12 15:18   ` Tom Rini
2015-05-12 16:20     ` Joe Hershberger
2015-05-12 16:32       ` Tom Rini
2015-05-13  1:24         ` Masahiro Yamada
2015-05-13  3:33           ` Joe Hershberger
2015-05-11 20:02 ` Stephen Warren
2015-05-11 20:17   ` Joe Hershberger
2015-05-11 21:07     ` Stephen Warren
2015-05-12  4:19       ` Joe Hershberger
2015-05-12 18:01 ` [U-Boot] [PATCH v2 1/2] kconfig: Make board selection choices optional Joe Hershberger
2015-05-12 18:01   ` [U-Boot] [PATCH v2 2/2] Clean all defconfigs with savedefconfig Joe Hershberger
2015-05-12 19:31   ` [U-Boot] [PATCH v2 1/2] kconfig: Make board selection choices optional Stephen Warren
2015-05-12 19:34     ` Joe Hershberger
2015-05-12 19:46   ` [U-Boot] [PATCH v3 1/2] arch: " Joe Hershberger
2015-05-12 19:46     ` [U-Boot] [PATCH v3 2/2] Clean all defconfigs with savedefconfig Joe Hershberger
2015-05-12 22:12       ` Tom Rini
2015-06-01  7:45         ` Chen-Yu Tsai
2015-06-01  9:46           ` Ian Campbell
2015-06-01 13:41             ` Joe Hershberger
2015-06-01 14:12               ` Tom Rini
2015-05-12 21:55     ` [U-Boot] [PATCH v3 1/2] arch: Make board selection choices optional Stephen Warren
2015-05-12 22:06       ` Joe Hershberger
2015-05-12 22:12     ` Tom Rini
2015-05-13  1:11       ` Masahiro Yamada
2015-07-29 17:25         ` Alexey Brodkin [this message]
2015-07-29 17:32           ` Alexey Brodkin
2015-08-01  7:46             ` 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=1438190740.16101.21.camel@synopsys.com \
    --to=alexey.brodkin@synopsys.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