This patch allows selecting and building driver for the ds2490 usb 1-wire module. Driver itself is available in the linux kernels, this patch just enables it's selection from the openwrt config file.
Tested against the openwrt trunk and with 2.6.34.7 kernel. (have also tested with backfire branch but it would require different patch as there are syntax differences in w1.mk) >From f3416ab5096fc50fa3356157cd8e8401a85520e3 Mon Sep 17 00:00:00 2001 From: Mika Laitio <[email protected]> Date: Fri, 5 Nov 2010 08:16:56 +0200 Subject: [PATCH 1/2] openwrt build support for DS2490 kernel module Signed-off-by: Mika Laitio <[email protected]> --- package/kernel/modules/w1.mk | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/package/kernel/modules/w1.mk b/package/kernel/modules/w1.mk index 47d8f36..c1c7665 100644 --- a/package/kernel/modules/w1.mk +++ b/package/kernel/modules/w1.mk @@ -33,6 +33,22 @@ endef # # 1-wire masters # +define KernelPackage/w1-master-ds2490 + TITLE:=1-wire DS2490 usb adapter support + DEPENDS:=...@usb_support +kmod-usb-core ++kmod-usb-uhci + KCONFIG:=CONFIG_W1_MASTER_DS2490 + FILES:=$(W1_MASTERS_DIR)/ds2490.ko + AUTOLOAD:=$(call AutoLoad,60,ds2490) + $(call AddDepends/w1) +endef + +define KernelPackage/w1-master-ds2490/description + 1-wire DS2490 usb adapter support +endef + +$(eval $(call KernelPackage,w1-master-ds2490)) + + define KernelPackage/w1-master-gpio TITLE:=GPIO 1-wire bus master driver DEPENDS:=...@gpio_support -- 1.7.1 -- Mika _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
