Hi,
I was working on getting a pretty new kernel device driver into 
package/kernel/linux/modules/hwmon.mk in recent trunk. My problem occured, when 
I encapsulated my new block to prevent it from building with older 
(unsupported) kernel versions.
So, to reproduce the problem properly, I checked out a fresh trunk and in the 
same file hwmon.mk I encapsulated the already existing block for the adt7475, 
so it looks like that:

ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1.0)),1)
define KernelPackage/hwmon-adt7475
  TITLE:=ADT7473/7475/7476/7490 monitoring support
  KCONFIG:=CONFIG_SENSORS_ADT7475
  FILES:=$(LINUX_DIR)/drivers/hwmon/adt7475.ko
  AUTOLOAD:=$(call AutoLoad,60,adt7475)
  $(call AddDepends/hwmon,+kmod-i2c-core +kmod-hwmon-vid)
endef

define KernelPackage/hwmon-adt7475/description
 Kernel module for ADT7473/7475/7476/7490 thermal monitor chip
endef

$(eval $(call KernelPackage,hwmon-adt7475))
endif

I tried with platforms ADM5120 (current Kernel version 3.8.13) and AR71xx 
(Kernel 3.10.x), but this block was in both cases invisible in menuconfig.
Trying to debug this problem, I encountered that $(KERNEL_PATCHVER) seems to be 
empty and $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1.0) is 0.
Please help, and also have a check at the other locations, where Kernel 
versions are checked this way.
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to