[OpenWrt-Devel] toolchain kernel-headers
nbd at openwrt.org
Thu Nov 12 08:50:23 EST 2015
On 2015-11-12 10:11, Kenneth Johansson wrote:
> contains this
> define Host/Configure
> yes '' | $(KMAKE) oldconfig
> $(call Host/Configure/all)
> $(call Host/Configure/post/$(ARCH))
> 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.
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel