|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Kconfig vs tool chain capabilities
On 25.08.20 09:34, Jan Beulich wrote: On 25.08.2020 09:12, Jürgen Groß wrote:On 25.08.20 08:31, Jan Beulich wrote:1) Does it make sense for tool chain capabilities to be recorded? 2) Does the recording actually work reliably? As to 1), I'm personally of the opinion that the original model was the better one, even if I can see advantages from downstream (distro in particular) pov. Yet even for them it may mean they would not get presented certain options which they may want to enable, if only they knew they'd need to upgrade their tool chain. For developers otoh, I don't think this model is a helpful one: They absolutely should be aware of pieces they end up not building (and which hence they're also not going test). (I'd like to note that there may certainly be cases where during the building of the tree features get enabled/disabled by other means without the person doing the build becoming aware. I think such should equally be converted to Kconfig selections, with the build simply failing if tool chain prereqs aren't met. The typical case though is a choice between different ways of generating code, with no effect on resulting functionality beyond a possible difference in performance.) Additionally the answer to 2) is, I'm afraid, continuing to be "No", as there is - afaict - no way for a once recorded .config to get updated if the underlying tool chain changed. All options to overcome this that I have been able to think of so far (unconditional invocation of kconfig; hashing of involved [tool chain] binaries) come with a pretty heavy overhead on build time and/or other complications. Sorry, I fail to see a problem here. What sense does it make to be able to configure an option which the tools don't support? Why aren't you concerned that you can't configure ARM-specific options in an x86 build then? My model will allow to give the user a hint that something has happened which will likely have some impact on the hypervisor configuration. It would even be possible to automatically run "make oldconfig" and print the resulting diff of .config and .config.old, and maybe even allow the build to continue if nothing but the tools capabilities/versions have changed. Juergen
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |