* [Buildroot] merge_config.sh not working on out of tree builds since kconfig bump
@ 2018-10-28 18:00 Erico Nunes
2018-10-28 23:13 ` Petr Vorel
0 siblings, 1 reply; 2+ messages in thread
From: Erico Nunes @ 2018-10-28 18:00 UTC (permalink / raw)
To: buildroot
Hello,
since commit "6eacea5ae0 support/kconfig: bump to kconfig from Linux
4.17-rc2", buildroot/support/kconfig/merge_config.sh no longer works
with out of tree Buildroot builds.
Here is a simple reproducer and the issue I see:
Before:
$ make -C buildroot O=$PWD/output defconfig
...
$ cd output
$ echo 'BR2_TARGET_GENERIC_HOSTNAME="test"' > test.frag
$ ../buildroot/support/kconfig/merge_config.sh .config test.frag
Using .config as base
Merging test.frag
umask 0022 && make -C /home/test/buildroot O=/home/test/output/. alldefconfig
GEN /home/test/output/Makefile
/tmp/.tmp.config.Mv8mtFExlv:3963:warning: override: reassigning to
symbol BR2_TARGET_GENERIC_HOSTNAME
#
# configuration written to /home/test/output/.config
#
After:
$ make -C buildroot O=$PWD/output defconfig
...
$ cd output
$ echo 'BR2_TARGET_GENERIC_HOSTNAME="test"' > test.frag
$ ../buildroot/support/kconfig/merge_config.sh .config test.frag
Using .config as base
Merging test.frag
umask 0022 && make -C /home/test/buildroot O=/home/test/output/. alldefconfig
GEN /home/test/output/Makefile
*** Can't read seed configuration "./.tmp.config.qIcpASpUyh"!
make[1]: *** [Makefile:925: alldefconfig] Error 1
make: *** [Makefile:16: _all] Error 2
I understand that kconfig is mostly ported from the kernel, but I
don't know if this may be caused by any Buildroot customizations.
I don't use merge_config.sh with the kernel but a simple attempt based
on the above with 4.19-rc6 seems to work.
The workaround seems to be to run merge_config.sh from the buildroot tree.
Any clue?
Thanks
Erico
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] merge_config.sh not working on out of tree builds since kconfig bump
2018-10-28 18:00 [Buildroot] merge_config.sh not working on out of tree builds since kconfig bump Erico Nunes
@ 2018-10-28 23:13 ` Petr Vorel
0 siblings, 0 replies; 2+ messages in thread
From: Petr Vorel @ 2018-10-28 23:13 UTC (permalink / raw)
To: buildroot
Hi Erico,
...
> $ make -C buildroot O=$PWD/output defconfig
> ...
> $ cd output
> $ echo 'BR2_TARGET_GENERIC_HOSTNAME="test"' > test.frag
> $ ../buildroot/support/kconfig/merge_config.sh .config test.frag
> Using .config as base
> Merging test.frag
> umask 0022 && make -C /home/test/buildroot O=/home/test/output/. alldefconfig
> GEN /home/test/output/Makefile
> *** Can't read seed configuration "./.tmp.config.qIcpASpUyh"!
> make[1]: *** [Makefile:925: alldefconfig] Error 1
> make: *** [Makefile:16: _all] Error 2
> I understand that kconfig is mostly ported from the kernel, but I
> don't know if this may be caused by any Buildroot customizations.
> I don't use merge_config.sh with the kernel but a simple attempt based
> on the above with 4.19-rc6 seems to work.
> The workaround seems to be to run merge_config.sh from the buildroot tree.
> Any clue?
Thanks for reporting bug. [1] patch from patchset [2] fixes that.
[1] https://patchwork.ozlabs.org/patch/990021/
[2] https://patchwork.ozlabs.org/project/buildroot/list/?series=72926&state=*
Kind regards,
Petr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-28 23:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-28 18:00 [Buildroot] merge_config.sh not working on out of tree builds since kconfig bump Erico Nunes
2018-10-28 23:13 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox