Skip to contentSkip to conversation

build: Require explicit .config update

RFC PATCH In review Anthony PERARD 2 participants 2 messages Sep 17, 2025

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 build: Require explicit .config update

From: Anthony PERARD <[email protected]>

It is sometime unwelcome for the config of the hypervisor to change.

Make output will be something like that:
tools/kconfig/conf --syncconfig Kconfig

*** The configuration requires explicit update.

make[2]: *** [/xen.git/xen/tools/kconfig/Makefile:73: syncconfig] Error 1
GEN Makefile
/xen.git/xen/Rules.mk:19: include/config/auto.conf: No such file or directory make[2]: *** No rule to make target 'include/config/auto.conf'. Stop. make[1]: *** [/xen.git/xen/Makefile:620: xen] Error 2
make: *** [/xen.git/xen/Makefile:179: __sub-make] Error 2

This also prevent update when the toolchain change and change CONFIG_* values like CONFIG_GCC_VERSION.

Proposed-by during design session

---

During the design session, the proposal was to compare .config before and after syncconfig. But maybe KCONFIG_NOSILENTUPDATE is enough?

---
 xen/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/Makefile +1 -1
index 49da79e10f..efeaaa557c 100644
@@ -379,7 +379,7 @@ $(KCONFIG_CONFIG): tools_fixdep
 # The syncconfig should be executed only once to make all the targets.
 include/config/%.conf include/config/%.conf.cmd: $(KCONFIG_CONFIG)
 	$(Q)rm -f include/config/auto.conf
-	$(Q)$(MAKE) $(build)=tools/kconfig syncconfig
+	$(Q)$(MAKE) $(build)=tools/kconfig syncconfig KCONFIG_NOSILENTUPDATE=1
 
 ifeq ($(CONFIG_DEBUG),y)
 CFLAGS += -O1
Signature · 1 line
Anthony PERARD
#1 lore raw
Quoted 19 lines · Anthony PERARD

From: Anthony PERARD <[email protected]>

It is sometime unwelcome for the config of the hypervisor to change.

Make output will be something like that:
tools/kconfig/conf --syncconfig Kconfig

*** The configuration requires explicit update.

make[2]: *** [/xen.git/xen/tools/kconfig/Makefile:73: syncconfig] Error 1
GEN Makefile
/xen.git/xen/Rules.mk:19: include/config/auto.conf: No such file or directory make[2]: *** No rule to make target 'include/config/auto.conf'. Stop. make[1]: *** [/xen.git/xen/Makefile:620: xen] Error 2
make: *** [/xen.git/xen/Makefile:179: __sub-make] Error 2

This also prevent update when the toolchain change and change CONFIG_* values like CONFIG_GCC_VERSION.

Quoted 6 lines
Proposed-by during design session

---

During the design session, the proposal was to compare .config before and after syncconfig. But maybe KCONFIG_NOSILENTUPDATE is enough?

Didn't know something like this existed. It's sufficient imo, just that we don't want to apply this mode unconditionally.

Jan