[OpenWrt-Devel] toolchain kernel-headers

Felix Fietkau nbd at openwrt.org
Thu Nov 12 08:50:23 EST 2015


On 2015-11-12 10:11, Kenneth Johansson wrote:
> toolchain/kernel-headers/Makefile
> 
> contains this
> 
> define Host/Configure
>      env
>      yes '' | $(KMAKE) oldconfig
>      $(call Host/Configure/all)
>      $(call Host/Configure/post/$(ARCH))
> endef
> 
> Now this is run to configure the kernel so that we later can do make 
> with the headers_install target.
> 
> But is this really correct ?
> what is happening here is that "make oldconfig" is at this point run 
> without any .config file present. what is then happening is that the 
> kernel makefile fetches the config for the currently running kernel on 
> the HOST and uses that as base config. well this is probably wrong ARCH 
> and probably a config for the wrong kernel version also. Is there a 
> reason a "make defconfig" can't be used ?
> 
> I had a kernel that did not allow answering yes on everything and thus 
> end in an infinite loop here and notice that this is a bit wrong/strange.
> 
> I guess that all that is needed at this stage is that the ARCH is 
> correct and we really do not care about the config.
I think defconfig should be usable as well, please test it.
As for ARCH, it definitely uses the right one, just take a look at the
definition of KMAKE.

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list