kernel: reorganize 2.6.38 patches, clean up block2mtd patches
[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_ep80579
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/src/GbE/gcu.ko \
33 $(PKG_BUILD_DIR)/Embedded/src/GbE/iegbe.ko
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/src/EDMA/dma.ko \
43 $(PKG_BUILD_DIR)/Embedded/src/GPIO/gpio.ko
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/src/1588/timesync.ko \
53 $(PKG_BUILD_DIR)/Embedded/src/CAN/can.ko
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/Subdir
65 $(MAKE) -C "$(LINUX_DIR)" \
66 KSRC="$(LINUX_DIR)" \
67 KOBJ="$(LINUX_DIR)" \
68 ENV_DIR=$(PKG_BUILD_DIR)/Embedded \
69 SUBDIRS="$(PKG_BUILD_DIR)/Embedded/src/$(1)" \
70 CROSS_COMPILE="$(TARGET_CROSS)" \
71 ARCHIVER="$(TARGET_CROSS)ar" \
72 COMPILER="$(TARGET_CC)" \
73 LINKER="$(TARGET_CROSS)ld" \
74 ARCH="$(LINUX_KARCH)"
75 endef
76
77 define Build/Compile
78 $(call Build/Compile/Subdir,GbE)
79 $(call Build/Compile/Subdir,CAN)
80 $(call Build/Compile/Subdir,EDMA)
81 $(call Build/Compile/Subdir,GPIO)
82 $(call Build/Compile/Subdir,WDT)
83 $(call Build/Compile/Subdir,1588)
84 endef
85
86 define KernelPackage/ep80579-eth/install
87 endef
88
89 $(eval $(call KernelPackage,ep80579-can))
90 $(eval $(call KernelPackage,ep80579-eth))
91 $(eval $(call KernelPackage,ep80579-misc))
92
This page took 0.049272 seconds and 5 git commands to generate.