Revert previous bad commit r11512
[openwrt.git] / package / ar7-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$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=sangam_atm
13 PKG_VERSION:=D7.03.01.00
14 PKG_RELEASE:=R2
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE).tar.bz2
17 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
18 PKG_MD5SUM:=bc6e9c6adb1be25820c7ee661de8ca7d
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define KernelPackage/sangam-atm/Default
23 SUBMENU:=Network Devices
24 DEPENDS:=@TARGET_ar7 +kmod-atm
25 TITLE:=AR7 ADSL driver
26 FILES:=$(PKG_BUILD_DIR)/tiatm.$(LINUX_KMOD_SUFFIX)
27 AUTOLOAD:=$(call AutoLoad,50,tiatm)
28 endef
29
30 define KernelPackage/sangam-atm-annex-a
31 $(call KernelPackage/sangam-atm/Default)
32 TITLE+= (Annex A, ADSL over POTS)
33 endef
34
35 define KernelPackage/sangam-atm-annex-a/description
36 The AR7 ADSL driver for Annex A (ADSL over POTS).
37 endef
38
39 define KernelPackage/sangam-atm-annex-b
40 $(call KernelPackage/sangam-atm/Default)
41 TITLE+= (Annex B, ADSL over ISDN)
42 endef
43
44 define KernelPackage/sangam-atm-annex-b/description
45 The AR7 ADSL driver for Annex B (ADSL over ISDN).
46 endef
47
48 define Build/Compile
49 $(MAKE) -C "$(LINUX_DIR)" \
50 CROSS_COMPILE="$(TARGET_CROSS)" \
51 ARCH="$(LINUX_KARCH)" \
52 SUBDIRS="$(PKG_BUILD_DIR)" \
53 modules
54 endef
55
56 define KernelPackage/sangam-atm-annex-a/install
57 mkdir -p $(1)/lib/firmware
58 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700mp.bin $(1)/lib/firmware/ar0700xx.bin
59 endef
60
61 define KernelPackage/sangam-atm-annex-b/install
62 mkdir -p $(1)/lib/firmware
63 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700db.bin $(1)/lib/firmware/ar0700xx.bin
64 endef
65
66 $(eval $(call KernelPackage,sangam-atm-annex-a))
67 $(eval $(call KernelPackage,sangam-atm-annex-b))
This page took 0.059988 seconds and 5 git commands to generate.