add no_werror patch again, fix xscale cflags
[openwrt.git] / package / ueagle-atm / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 2767 2005-12-25 02:10:14Z wbx $
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=ueagle-atm
13 PKG_VERSION:=1.0d1
14 PKG_RELEASE:=1
15 PKG_MD5SUM:=5da1fceb15168f4c7ad407a3e38ddecb
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_URL:=http://castet.matthieu.free.fr/eagle/release/
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_CAT:=zcat
21
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 #FIXME: add dependency on kmod-usb-core
27 define Package/kmod-ueagle-atm
28 SECTION:=drivers
29 CATEGORY:=Drivers
30 DEPENDS:=@LINUX_2_6_BRCM @PACKAGE_KMOD_USB
31 TITLE:=Driver for Eagle 8051 based USB ADSL modems
32 DESCRIPTION:=Driver for Eagle 8051 based USB ADSL modems
33 URL:=http://www.eagle-usb.org/
34 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 ARCH="$(LINUX_KARCH)" \
40 CROSS_COMPILE="$(TARGET_CROSS)" \
41 TARGET="$(HAL_TARGET)" \
42 KERNELDIR="$(LINUX_DIR)" \
43 all
44 endef
45
46 define Package/kmod-ueagle-atm/install
47 install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
48 $(CP) $(PKG_BUILD_DIR)/driver/ueagle-atm.$(LINUX_KMOD_SUFFIX) \
49 $(PKG_BUILD_DIR)/usbatm_iso/usbatm.$(LINUX_KMOD_SUFFIX) \
50 $(1)/lib/modules/$(LINUX_VERSION)/
51 install -d -m0755 $(1)/etc/modules.d
52 install -m0644 ./files/$(PKG_NAME).modules \
53 $(1)/etc/modules.d/10-$(PKG_NAME)
54 endef
55
56 $(eval $(call BuildPackage,kmod-ueagle-atm))
57
This page took 0.038095 seconds and 5 git commands to generate.