[U-Boot] [PATCH 1/2] configs: Resync with savedefconfig

Stephen Warren swarren at wwwdotorg.org
Fri Sep 9 23:06:01 CEST 2016


On 09/09/2016 01:11 PM, Tom Rini wrote:
> On Fri, Sep 09, 2016 at 01:09:43PM -0600, Stephen Warren wrote:
>> On 09/09/2016 01:02 PM, Tom Rini wrote:
>>> On Fri, Sep 09, 2016 at 10:21:45AM -0600, Stephen Warren wrote:
>>>> On 09/08/2016 07:19 PM, Tom Rini wrote:
>>>>> Signed-off-by: Tom Rini <trini at konsulko.com>
>>> /bin/bash: ess: command not found
>>>>> diff --git a/configs/harmony_defconfig b/configs/harmony_defconfig
>>>>
>>>>> -CONFIG_USE_PRIVATE_LIBGCC=y
>>>>
>>>> I assume that's because =y is the default for that now?
>>>
>>> Yes.
>>
>>>>> diff --git a/configs/p2771-0000-500_defconfig b/configs/p2771-0000-500_defconfig
>>>>
>>>>> -CONFIG_TARGET_P2771_0000=y
>>>>
>>>> I think we need to keep those two. Those two defconfigs are slightly
>>>> different configurations of U-Boot's p2771-0000 board/target.
>>>
>>> OK, then you need to submit a patch to fix the underlying problem, if
>>> there is one, really.  Keep in mind that what this is, is re-running
>>> savedefconfig for each target.  So if something odd drops out that means
>>> that it wasn't having any effect before.
>>
>> I don't believe there is any underlying problem. The Kconfig option
>> in question is defined in arch/arm/mach-tegra/tegra186/Kconfig, when
>> building for p2771-0000-000 the option makes it into .config just
>> fine, and the value is used by board/nvidia/p2771-0000/Kconfig.
>> Isn't this a bug in savedefconfig? I'm CC'ing Masahiro to get some
>> insight.
>
> It is the default value then and isn't saved is I believe the answer.

I don't think it's the default; nothing selects that option and it has 
no "default y".

Or maybe since the value is inside a choice, and is the only entry 
that's there, that does make it the default? If so, that seems a little 
fragile; what if someone comes along and adds a new board into the list, 
and puts it before the existing entry (e.g. to maintain alphabetical 
sorting). That would changing the meaning of the current defconfig file 
if the first entry is picked as default. If so, I'm surprised if nobody 
has had that issue yet.


More information about the U-Boot mailing list