[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH RFC] xen/Kconfig: Use olddefconfig not silentoldconfig to update .config



On Fri, 2016-01-15 at 15:07 +0000, Ian Campbell wrote:
> On Fri, 2016-01-15 at 14:48 +0000, Ian Campbell wrote:
> > RFC RFC RFC RFC RFC RFC RFC RFC RFC RFC RFC
> > BECAUSE THIS BREAKS CLEAN BUILDS WITH:
> > In file included from <command-line>:0:0:
> > /local/scratch/ianc/devel/arm/xen.git/xen/include/xen/config.h:10:32:
> > fatal error: generated/autoconf.h: No such file or directory
> > Â#include <generated/autoconf.h>
> > 
> > I'm not sure why given the descriptions of olddefconfig and
> > silentoldconfig below.
> 
> xen/tools/kconfig/Makefile holds the answer...
> 
> ÂÂÂÂsilentoldconfig: $(obj)/conf
> ÂÂÂÂ  ÂÂÂÂ$(Q)mkdir -p include/config include/generated
> ÂÂÂÂ  ÂÂÂÂ$< $(silent) --$@ $(Kconfig)
> 
> vs for olddefconfig (which is in $(simple-targets)):
> 
> ÂÂÂÂ$(simple-targets): $(obj)/conf
> ÂÂÂÂ  ÂÂÂÂ$< $(silent) --$@ $(Kconfig)
> 
> However the (seemingly) obvious answer of:
> 
> ÂÂÂÂdiff --git a/xen/Makefile b/xen/Makefile
> ÂÂÂÂindex f8f3bb4..2422ba8 100644
> ÂÂÂÂ--- a/xen/Makefile
> ÂÂÂÂ+++ b/xen/Makefile
> ÂÂÂÂ@@ -239,6 +239,7 @@ $(kconfig):
> ÂÂÂÂÂÂÂÂÂÂÂÂ$(MAKE) -f $(BASEDIR)/tools/kconfig/Makefile.kconfig
> ARCH=$(XEN_TARGET_ARCH) $@
> ÂÂÂÂÂ
> ÂÂÂÂÂinclude/config/%.conf: include/config/auto.conf.cmd
> $(KCONFIG_CONFIG)
> ÂÂÂÂ+ÂÂÂÂÂÂÂ$(Q)mkdir -p include/config include/generated
> ÂÂÂÂÂÂÂÂÂÂÂÂ$(Q)$(MAKE) -f $(BASEDIR)/tools/kconfig/Makefile.kconfig
> ARCH=$(XEN_TARGET_ARCH) olddefconfig
> ÂÂÂÂÂ
> ÂÂÂÂÂ# Allow people to just run `make` as before and not force them to
> configure
> 
> Doesn't help, so I suppose there must be an actual semantic difference in
> $(obj)/conf for these two options.
> 
> So I'm not sure what to do now.

There is indeed a difference on conf.c, only silentoldconfig sets
sync_kconfig.

Running olddefconfig and then silentoldconfig seems to work, but ewww...

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.