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
24 DEPENDS
:=@TARGET_x86_ep80579
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
/src
/GbE
/gcu.ko \
33 $(PKG_BUILD_DIR
)/Embedded
/src
/GbE
/iegbe.ko
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
/src
/EDMA
/dma.ko \
43 $(PKG_BUILD_DIR
)/Embedded
/src
/GPIO
/gpio.ko
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
/src
/1588/timesync.ko \
53 $(PKG_BUILD_DIR
)/Embedded
/src
/CAN
/can.ko
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
)/
64 define Build
/Compile
/Subdir
65 $(MAKE
) -C
"$(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" \
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)
86 define KernelPackage
/ep80579-eth
/install
89 $(eval
$(call KernelPackage
,ep80579-can
))
90 $(eval
$(call KernelPackage
,ep80579-eth
))
91 $(eval
$(call KernelPackage
,ep80579-misc
))