public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Kconfig bug (optional choice deselected by following option)
Date: Sun, 17 Jan 2016 12:39:09 +0100	[thread overview]
Message-ID: <569B7D5D.1030904@gmail.com> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi all,

I have found weird feature of Kconfig. 
If I misused something, please let me know - I found at least one place 
where the same error occurs.

Let's consider the following Kconfig (you can put it anywhere in the source tree):
<-------------- copy ----------------->
menu "Testmenu"
choice
        prompt "Problem to solve"
        optional
        default n
        help
          Solve one of great world problems

config SOLVE_HUNGER
        bool "Hunger"

config SOLVE_WARS
        bool "Wars"

config CURE_CANCER
        bool "Cancer"

endchoice

config TREES
        default n
        bool "Plant trees in garden" 
endmenu

config BLAH
        default n
        bool "Totally unrelated option"

<------------- paste ------------------->

Now, select HUNGER important problem to solve; Warning - select it with space, _not_ enter + selection from list;
Then select either TREES or BLAH.

Weird thing is - SOLVE_HUNGER is unselected.

It doesn't happen when you select (anything) by entering selection menu (i.e. enter).
Even if you deselect option and then select it with space.

It happens both in menuconfig and nconfig.

It happens both in recent U-Boot b57843e6 and Linux kernel ece62678.

Unfortunately my knowledge of Kconfig is very limited so your help would be appreciated.

Best Regards,
Mateusz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWm31YAAoJELvtohmVtQzB7dEH/0/9BMe6+Oq38UVSUcjmNzaH
GqUdkK9MN9tYD6euHTcynlT0HZRkDTYCOFmQjG68Lj1Ejx0/Si2KYe6NKexvkysB
HAshC0+rGkbOgW0fkBByL2HY8PGAxtNbSbcwzC7xnhRMCkiPp2xiMy1pwRSOI7tN
dDzXEuuTvGxsGHUm8dSuxGE9Wd96MY71BDzO+vQrP+CiCV7IeKYMfiYhngN6FEBz
Sq5YCljVsSIvsZuBIaJlPuU7vnS64x2RnxkPskln9k4M9gv6GQOAcRb+YZ0PKLOs
qSdzBTvQsEMBdsJBk2nGgBIXUcFSPbAAQwl1FyepFlgm4d6152Wf9BQxFJBNij4=
=zry6
-----END PGP SIGNATURE-----

             reply	other threads:[~2016-01-17 11:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-17 11:39 Mateusz Kulikowski [this message]
2016-01-17 20:29 ` [U-Boot] Kconfig bug (optional choice deselected by following option) Masahiro Yamada
2016-01-17 20:40   ` Masahiro Yamada
2016-01-17 21:14   ` Mateusz Kulikowski

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=569B7D5D.1030904@gmail.com \
    --to=mateusz.kulikowski@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