2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
11 PKG_NAME
:=ep80579-drivers
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
19 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
23 define KernelPackage
/ep80579-drivers
/Default
27 define KernelPackage
/ep80579-eth
28 $(call KernelPackage
/ep80579-drivers
/Default
)
29 SUBMENU
:=Network Devices
30 TITLE
:=Intel EP80579 ethernet driver
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
)
37 define KernelPackage
/ep80579-misc
38 $(call KernelPackage
/ep80579-drivers
/Default
)
39 SUBMENU
:=Other modules
40 TITLE
:=Misc. Intel EP80579 drivers
(DMA
,, gpio
)
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
)
47 define KernelPackage
/ep80579-can
48 $(call KernelPackage
/ep80579-drivers
/Default
)
49 SUBMENU
:=Other modules
50 TITLE
:=Intel EP80579 CAN driver
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
)
58 rm -rf
$(PKG_BUILD_DIR
)
59 mkdir
-p
$(PKG_BUILD_DIR
)
60 tar xzvf
$(DL_DIR
)/$(PKG_SOURCE
) -C
$(PKG_BUILD_DIR
)/
65 (cd
$(PKG_BUILD_DIR
)/Embedded
; \
66 $(MAKE
) KERNEL_SOURCE_ROOT
=$(LINUX_DIR
) \
69 ENV_DIR
=$(PKG_BUILD_DIR
)/Embedded \
74 define KernelPackage
/ep80579-eth
/install
77 $(eval
$(call KernelPackage
,ep80579-can
))
78 $(eval
$(call KernelPackage
,ep80579-eth
))
79 $(eval
$(call KernelPackage
,ep80579-misc
))