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