Roberto Riggio wrote: > Sorry I reversed the if..else > > Index: package/kernel/modules/other.mk > =================================================================== > --- package/kernel/modules/other.mk (revision 18014) > +++ package/kernel/modules/other.mk (working copy) > @@ -489,7 +489,11 @@ > SUBMENU:=$(OTHER_MENU) > TITLE:=PCengines ALIX LED support > DEPENDS:=...@target_x86 > +ifeq ($(strip $(call > CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.31)),1) > KCONFIG:=CONFIG_LEDS_ALIX > +else > + KCONFIG:=CONFIG_LEDS_ALIX2 > +endif > FILES:=$(LINUX_DIR)/drivers/leds/leds-alix.$(LINUX_KMOD_SUFFIX) > AUTOLOAD:=$(call AutoLoad,50,leds-alix) > endef Doesn't work. KCONFIG is processed at DUMP time, at which point the kernel version isn't available yet (because .config isn't processed). An easier fix would be to specify both KCONFIG symbols there and it'll try to enable both.
- Felix _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
