On 02.07.2025 10:12, Juergen Gross wrote: > Add support for a Mini-OS config file containing config items with > numerical values, e.g. CONFIG_FOO=7. > > Signed-off-by: Juergen Gross <jgr...@suse.com>
Reviewed-by: Jan Beulich <jbeul...@suse.com> Albeit I'm puzzled by the use in the next patch. Besides me perhaps simply not knowing where the new CONFIG_* would actually have its value set, I wonder why, ... > --- a/Config.mk > +++ b/Config.mk > @@ -178,6 +178,7 @@ endif > # CONFIG-y contains all items defaulting to "y" > # CONFIG-n contains all items defaulting to "n" > # CONFIG-x contains all items being calculated if not set explicitly > +# CONFIG-val-y contains all items with numerical values, defaulting to 0 > CONFIG-y += CONFIG_START_NETWORK > CONFIG-y += CONFIG_SPARSE_BSS > CONFIG-y += CONFIG_BLKFRONT > @@ -219,6 +220,8 @@ CONFIG-$(lwip) += CONFIG_LWIP > $(foreach i,$(CONFIG-y),$(eval $(i) ?= y)) > $(foreach i,$(CONFIG-n),$(eval $(i) ?= n)) > > +$(foreach i,$(CONFIG-val-y),$(eval $(i) ?= 0)) ... with this and ... > @@ -226,6 +229,7 @@ CONFIG-all := $(CONFIG-y) $(CONFIG-n) $(CONFIG-x) > > # Export config items as compiler directives > $(foreach i,$(CONFIG-all),$(eval DEFINES-$($(i)) += -D$(i))) > +$(foreach i,$(CONFIG-val-y),$(eval DEFINES-y += -D$(i)=$($(i)))) ... this, kexec.h still needs to have a fallback #define there. Jan