Ouss4 edited a comment on issue #1718:
URL: 
https://github.com/apache/incubator-nuttx/issues/1718#issuecomment-687373252


   >  To bad there isn't a way to cache the apps/Kconfig files to avoid the 
prefconfig.
   
   @patacongo I think we can do that with a define we pass to distclean, maybe 
`make distclean CACHE_KCONFIG=1` and:
   
   ``` diff
   diff --git a/Directory.mk b/Directory.mk
   index 6ce0149e..971eaa96 100644
   --- a/Directory.mk
   +++ b/Directory.mk
   @@ -56,18 +56,22 @@ nothing:
   
    install:
   
   -preconfig: $(foreach SDIR, $(CONFIGSUBDIRS), $(SDIR)_preconfig)
   +.kconfig: $(foreach SDIR, $(CONFIGSUBDIRS), $(SDIR)_preconfig)
    ifneq ($(MENUDESC),)
           $(Q) $(MKKCONFIG) -m $(MENUDESC)
           $(Q) touch .kconfig
    endif
   
   +preconfig: .kconfig
   +
    clean: $(foreach SDIR, $(CLEANSUBDIRS), $(SDIR)_clean)
   
    distclean: $(foreach SDIR, $(CLEANSUBDIRS), $(SDIR)_distclean)
    ifneq ($(MENUDESC),)
   +ifeq ($(CACHE_KCONFIG),)
           $(call DELFILE, Kconfig)
           $(call DELFILE, .kconfig)
    endif
   +endif
   ```
    But how do we clean when we finish?  The last distclean shouldn't set the 
cache_kconfig.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to