[kernel] Add package for gpio rotary encoder
[openwrt.git] / package / ep80579-drivers / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=ep80579-drivers
12 PKG_VERSION:=1.0.34
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=Embedded.L.1.0.34.ADI.R100.tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.adiengineering.com/Archive/OcracokeIsland/Drivers/Linux/1.0.34/
17 PKG_MD5SUM:=61df9778f8c1f919257d2f48a0bcb000
18
19 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define KernelPackage/ep80579-drivers/Default
24 DEPENDS:=@TARGET_x86
25 endef
26
27 define KernelPackage/ep80579-eth
28 $(call KernelPackage/ep80579-drivers/Default)
29 SUBMENU:=Network Devices
30 TITLE:=Intel EP80579 ethernet driver
31 FILES:= \
32 $(PKG_BUILD_DIR)/Embedded/build/gcu.$(LINUX_KMOD_SUFFIX) \
33 $(PKG_BUILD_DIR)/Embedded/build/iegbe.$(LINUX_KMOD_SUFFIX)
34 AUTOLOAD:=$(call AutoLoad,40,gcu iegbe)
35 endef
36
37 define KernelPackage/ep80579-misc
38 $(call KernelPackage/ep80579-drivers/Default)
39 SUBMENU:=Other modules
40 TITLE:=Misc. Intel EP80579 drivers (DMA,, gpio)
41 FILES:= \
42 $(PKG_BUILD_DIR)/Embedded/build/dma.$(LINUX_KMOD_SUFFIX) \
43 $(PKG_BUILD_DIR)/Embedded/build/gpio.$(LINUX_KMOD_SUFFIX)
44 AUTOLOAD:=$(call AutoLoad,40,gpio dma)
45 endef
46
47 define KernelPackage/ep80579-can
48 $(call KernelPackage/ep80579-drivers/Default)
49 SUBMENU:=Other modules
50 TITLE:=Intel EP80579 CAN driver
51 FILES:= \
52 $(PKG_BUILD_DIR)/Embedded/build/timesync.$(LINUX_KMOD_SUFFIX) \
53 $(PKG_BUILD_DIR)/Embedded/build/can.$(LINUX_KMOD_SUFFIX)
54 AUTOLOAD:=$(call AutoLoad,40,timesync can)
55 endef
56
57 define Build/Prepare
58 rm -rf $(PKG_BUILD_DIR)
59 mkdir -p $(PKG_BUILD_DIR)
60 tar xzvf $(DL_DIR)/$(PKG_SOURCE) -C $(PKG_BUILD_DIR)/
61 $(Build/Patch)
62 endef
63
64 define Build/Compile
65 (cd $(PKG_BUILD_DIR)/Embedded; \
66 $(MAKE) KERNEL_SOURCE_ROOT=$(LINUX_DIR) \
67 KSRC=$(LINUX_DIR) \
68 KOBJ=$(LINUX_DIR) \
69 ENV_DIR=$(PKG_BUILD_DIR)/Embedded \
70 all \
71 )
72 endef
73
74 define KernelPackage/ep80579-eth/install
75 endef
76
77 $(eval $(call KernelPackage,ep80579-can))
78 $(eval $(call KernelPackage,ep80579-eth))
79 $(eval $(call KernelPackage,ep80579-misc))
80
This page took 0.040509 seconds and 5 git commands to generate.