On Sat, Sep 29, 2007 at 10:11:45PM +0200, Sam Ravnborg wrote:IMHO for people who are not kbuild junkies the pattern is more clear with the current syntax. But you should better ask some guinea pigs who have not already seen as many kernel Makefiles as I have... Some of the cases have the following pattern: config X86_POWERNOW_K8_ACPI bool depends on X86_POWERNOW_K8 && ACPI_PROCESSOR depends on !(X86_POWERNOW_K8 = y && ACPI_PROCESSOR = m) default y Your suggested syntax has to be enhanced with three additional variables for handling such cases. The complicated cases can be handled either in kconfig or in kbuild, and I think kconfig is the better place for them: Handling it in kconfig has the advantage that we also get a variable we can use in C code. For all the *-if-m and *-m-if{,n}-* cases this is a huge advantage over having to express the whole dependency in each #if. Compare #if defined(CONFIG_ACPI_PROCESSOR) || (defined(CONFIG_ACPI_PROCESSOR_MODULE && defined(MODULE)) with #ifdef CONFIG_X86_POWERNOW_K8_ACPI cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed -
| David Miller | Re: [GIT]: Networking |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Roland Dreier | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Paul E. McKenney | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
