Hi,

As of kernel 2.6.36, R6040 network device driver has been moved to
phylib base. I am trying to update netdevices.mk to reflect this
condition:

define KernelPackage/r6040
  SUBMENU:=$(NETWORK_DEVICES_MENU)
  TITLE:=RDC Fast-Ethernet support
  DEPENDS:=...@target_rdc||TARGET_x86
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.36)),1)
  DEPENDS+= +kmod-libphy
endif
  KCONFIG:=CONFIG_R6040 \
                CONFIG_R6040_NAPI=y
  FILES:=$(LINUX_DIR)/drivers/net/r6040.ko
  AUTOLOAD:=$(call AutoLoad,99,r6040)
endef

Somehow, KERNEL_PATCHVER is not defined at this point yet. Any ideas
how to do this properly?

SIncerely,
Artem Egorkine
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to