From: Bruce Ashfield <bruce.ashfield@windriver.com>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>,
<openembedded-core@lists.openembedded.org>
Cc: darren.hart@intel.com, Darren Hart <dvhart@linux.intel.com>
Subject: Re: [PATCH] kernel: use oldnoconfig instead of yes '' | make oldconfig
Date: Tue, 7 Jan 2014 15:39:01 -0500 [thread overview]
Message-ID: <52CC65E5.6010003@windriver.com> (raw)
In-Reply-To: <52CC633C.6000404@free-electrons.com>
On 14-01-07 03:27 PM, Alexandre Belloni wrote:
> On 07/01/2014 16:32, Bruce Ashfield wrote:
>> On 14-01-07 09:18 AM, Alexandre Belloni wrote:
>>> When using a defconfig, using yes '' | make oldconfig may not result in
>>> the correct configuration being set. For example:
>>>
>>> $ grep USB_ETH .config
>>> CONFIG_USB_ETH=y
>>> CONFIG_USB_ETH_RNDIS=y
>>> CONFIG_USB_ETH_EEM=y
>>> $ make savedefconfig
>>> scripts/kconfig/conf --savedefconfig=defconfig Kconfig
>>> $ cp defconfig .config
>>> ‘defconfig’ -> ‘.config’
>>> $ yes '' | make oldconfig
>>> [...]
>>> #
>>> # configuration written to .config
>>> #
>>> $ grep USB_ETH .config
>>> CONFIG_USB_ETH=m
>>> CONFIG_USB_ETH_RNDIS=y
>>> CONFIG_USB_ETH_EEM=y
>>>
>>> Using make olddefconfig solves that but we'll use oldnoconfig for
>>> backward compatibility with older kernels.
>>>
>>> $ cp defconfig .config
>>> ‘defconfig’ -> ‘.config’
>>> $ make oldnoconfig
>>> scripts/kconfig/conf --olddefconfig Kconfig
>>> #
>>> # configuration written to .config
>>> #
>>> $ grep USB_ETH .config
>>> CONFIG_USB_ETH=y
>>> CONFIG_USB_ETH_RNDIS=y
>>> CONFIG_USB_ETH_EEM=y
>>>
>>> For more information, please refer to:
>>> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=fbe98bb9ed3dae23e320c6b113e35f129538d14a
>>>
>>
>> It was my understanding that this commit changed the Kconfig behaviour
>> to set the selected options to =y and prevent the menu choice from
>> "hiding" the options in a depedent choice menu. But maybe I'm remembering
>> wrong.
>>
>> The point being, that with that commit in place. Doesn't the behaviour
>> match what we want with yes and oldconfig ?
>>
>
> Nope, that commit is fixing the issue when using make <target>_defconfig
> or make olddefconfig. Note that using make menuconfig already had the
> correct behavior before that commit.
right. I'm pretty familiar with that code, so I knew this worked.
>
> As shown in my commit log, using yes '' | make oldconfig is still
> getting it wrong.
But that was also my point. Since the target suggested in this
patch hasn't always existed (and hence has a kernel version binding),
why not use olddefconfig with this patch, and leave the functionality
closer to its existing behaviour ? We'd still have a kernel capability
binding, but we'd not have the =y converted to =m, and the default of
'y' for new functionality would be maintained.
>
>> .. I'll run some tests to confirm for myself, but I thought I'd throw
>> the question out as well. I don't typically use defconfigs, so I need
>> to do a bit of leg work.
>>
>
> Yeah, using a full .config doesn't trigger that behavior.
I don't use those either :) but the end result is the same.
Cheers,
Bruce
>
>> I don't have any big issues with the patch, but I just want to be sure,
>> since changing this default could change the configs of many defconfig
>> users, and they may have been unknowingly relying on the old behaviour.
>>
>
> I can understand that. But I don't see any other way to make the really
> expected behavior to work without risking breaking anything.
>
next prev parent reply other threads:[~2014-01-07 20:39 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-07 14:18 [PATCH] kernel: use oldnoconfig instead of yes '' | make oldconfig Alexandre Belloni
2014-01-07 14:35 ` Martin Jansa
2014-01-07 15:20 ` Alexandre Belloni
2014-01-07 15:54 ` Martin Jansa
2014-01-07 18:11 ` Hart, Darren
2014-01-07 20:32 ` Alexandre Belloni
2014-01-07 21:32 ` Hart, Darren
2014-01-07 15:32 ` Bruce Ashfield
2014-01-07 20:27 ` Alexandre Belloni
2014-01-07 20:39 ` Bruce Ashfield [this message]
2014-01-07 20:52 ` Alexandre Belloni
2014-01-07 21:14 ` Bruce Ashfield
2014-01-29 13:10 ` Alexandre Belloni
2014-01-29 15:03 ` Bruce Ashfield
2014-02-06 13:48 ` Bruce Ashfield
2014-02-06 21:48 ` Bruce Ashfield
2014-02-07 14:02 ` Alexandre Belloni
2014-02-07 15:11 ` Bruce Ashfield
2014-02-07 15:43 ` Alexandre Belloni
2014-02-07 16:10 ` Bruce Ashfield
-- strict thread matches above, loose matches on Subject: below --
2014-01-07 13:48 Alexandre Belloni
2014-01-07 14:03 ` Richard Purdie
2014-01-07 14:14 ` Alexandre Belloni
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=52CC65E5.6010003@windriver.com \
--to=bruce.ashfield@windriver.com \
--cc=alexandre.belloni@free-electrons.com \
--cc=darren.hart@intel.com \
--cc=dvhart@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/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.