[Buildroot] [PATCH 3/3] New <pkg>-update-last-config-fragment target in pkg-kconfig.mk

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Jul 30 21:46:43 UTC 2018


Hello Marcel,

On Mon, 30 Jul 2018 17:51:53 +0200, Marcel Patzlaff wrote:
> This patch adds the new target above which implements the update routine as
> detailled in the head of this patch series.
> 
> Signed-off-by: Marcel Patzlaff <m.patzlaff at pilz.de>

Thanks for working on this complex topic, as Arnout said.

On my side, I find the semantic of "let's update the _last_ fragment"
to be a bit weird and complex to understand. Why the last one, and not
any other ?

I'm not sure it's possible to have something that updates fragments
with a sensible semantic.

However, what would be useful would be a way to dump the difference
between the current configuration, and what the combination of the
defconfig+fragments provide.

I.e, you start Buildroot with omap2plus_defconfig + some specific
fragments as the kernel configuration.

You run "make linux-show-config-diff", which returns empty.

Then you tweak the configuration with "make linux-menuconfig", and run
"make linux-show-config-diff", which shows you the lines that you need
to put in one of your fragments to preserve the configuration tweaks
you have done.

Of course, the name "linux-show-config-diff" is just made up here, and
some more thought is needed to find a good name. But overall, I believe
the semantic would be much clearer, and doesn't make any assumption on
whether we have one or several fragments, and whether the last fragment
or any other fragment needs to be updated.

What do you think about this? Would this also fill your needs?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list