build: Require explicit .config update
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.
---
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
@@ -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
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--syncconfigKconfig*** The configuration requires explicit update.
make[2]: *** [/xen.git/xen/tools/kconfig/Makefile:73: syncconfig] Error 1
GENMakefile
/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 2This also prevent update when the toolchain change and change CONFIG_* values like
CONFIG_GCC_VERSION.
Quoted 6 lines
Proposed-by during design sessionSigned-off-by Anthony PERARD <[email protected]>---
During the design session, the proposal was to compare .config before and after syncconfig. But maybe
KCONFIG_NOSILENTUPDATEis enough?
Didn't know something like this existed. It's sufficient imo, just that we don't want to apply this mode unconditionally.
Jan