kconfig: allow all config targets to write auto.conf if missing
Currently, only syncconfig creates or updates include/config/auto.conf and some other files. Other config targets create or update only the .config file. When you configure and build the kernel from a pristine source tree, any config target is followed by syncconfig in the build stage since include/config/auto.conf is missing. We are moving compiler tests from Makefile to Kconfig. It means that parsing Kconfig files will be more costly since Kconfig invokes the compiler commands internally. Thus, we want to avoid invoking Kconfig twice (one for *config to create the .config, and one for syncconfig to synchronize the auto.conf). If auto.conf does not exist, we can generate all configuration files in the first configuration stage, which will save the syncconfig in the build stage. Please note this should be done only when auto.conf is missing. If *config blindly did this, time stamp files under include/config/ would be unnecessarily tou...
Showing
- scripts/kconfig/conf.c 17 additions, 14 deletionsscripts/kconfig/conf.c
- scripts/kconfig/confdata.c 7 additions, 4 deletionsscripts/kconfig/confdata.c
- scripts/kconfig/gconf.c 1 addition, 0 deletionsscripts/kconfig/gconf.c
- scripts/kconfig/lkc_proto.h 1 addition, 1 deletionscripts/kconfig/lkc_proto.h
- scripts/kconfig/mconf.c 1 addition, 0 deletionsscripts/kconfig/mconf.c
- scripts/kconfig/nconf.c 1 addition, 0 deletionsscripts/kconfig/nconf.c
- scripts/kconfig/qconf.cc 2 additions, 0 deletionsscripts/kconfig/qconf.cc
Please register or sign in to comment