2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 2767 2005-12-25 02:10:14Z wbx $
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://castet.matthieu.free.fr
/eagle
/release
/
18 PKG_MD5SUM
:=5da1fceb15168f4c7ad407a3e38ddecb
21 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 include $(INCLUDE_DIR
)/package.mk
26 #FIXME: add dependency on kmod-usb-core
27 define Package
/kmod-ueagle-atm
29 CATEGORY
:=Kernel drivers
30 DEPENDS
:=@LINUX_2_6_BRCM @PACKAGE_KMOD_USB
31 TITLE
:=Driver for Eagle
8051 based USB ADSL modems
32 URL
:=http
://www.eagle-usb.org
/
33 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 ARCH
="$(LINUX_KARCH)" \
39 CROSS_COMPILE
="$(TARGET_CROSS)" \
40 TARGET
="$(HAL_TARGET)" \
41 KERNELDIR
="$(LINUX_DIR)" \
45 define Package
/kmod-ueagle-atm
/install
46 install -d
-m0755
$(1)/lib
/modules
/$(LINUX_VERSION
)
47 $(CP
) $(PKG_BUILD_DIR
)/driver
/ueagle-atm.
$(LINUX_KMOD_SUFFIX
) \
48 $(PKG_BUILD_DIR
)/usbatm_iso
/usbatm.
$(LINUX_KMOD_SUFFIX
) \
49 $(1)/lib
/modules
/$(LINUX_VERSION
)/
50 install -d
-m0755
$(1)/etc
/modules.d
51 install -m0644 .
/files
/$(PKG_NAME
).modules \
52 $(1)/etc
/modules.d
/10-$(PKG_NAME
)
55 $(eval
$(call BuildPackage
,kmod-ueagle-atm
))