2 # Copyright (C) 2006-2014 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
13 ifeq ($(CONFIG_AR7_ATM_FW_VERSION_705),y)
14 PKG_VERSION:=D7.05.01.00
15 PKG_MD5SUM:=42ee465be5cfbe9476fc25deb260d450
17 PATCH_DIR:=patches-$(PKG_VERSION)
20 ifeq ($(CONFIG_AR7_ATM_FW_VERSION_704),y)
21 PKG_VERSION:=D7.04.03.00
22 PKG_MD5SUM:=3d76004e46f09e88931f91670cb420ad
24 PATCH_DIR:=patches-$(PKG_VERSION)
27 ifeq ($(CONFIG_AR7_ATM_FW_VERSION_703),y)
28 PKG_VERSION:=D7.03.01.00
29 PKG_MD5SUM:=bc6e9c6adb1be25820c7ee661de8ca7d
31 PATCH_DIR:=patches-D7.04.03.00
34 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE).tar.bz2
35 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
37 include $(INCLUDE_DIR)/package.mk
39 define KernelPackage/sangam-atm/Default
40 SUBMENU:=Network Devices
41 DEPENDS:=@TARGET_ar7_generic +kmod-atm
42 TITLE:=AR7 ADSL driver
43 FILES:=$(PKG_BUILD_DIR)/tiatm.ko
44 AUTOLOAD:=$(call AutoLoad,50,tiatm)
45 MAINTAINER:=Florian Fainelli <florian@openwrt.org>
49 define KernelPackage/sangam-atm/config
50 source "$(SOURCE)/Config.in"
53 define KernelPackage/sangam-atm-annex-a
54 $(call KernelPackage/sangam-atm/Default)
55 TITLE+= (Annex A, ADSL over POTS)
58 define KernelPackage/sangam-atm-annex-a/description
59 The AR7 ADSL driver for Annex A (ADSL over POTS).
62 define KernelPackage/sangam-atm-annex-a/config
63 $(call KernelPackage/sangam-atm/config)
66 define KernelPackage/sangam-atm-annex-b
67 $(call KernelPackage/sangam-atm/Default)
68 TITLE+= (Annex B, ADSL over ISDN)
71 define KernelPackage/sangam-atm-annex-b/description
72 The AR7 ADSL driver for Annex B (ADSL over ISDN).
75 define KernelPackage/sangam-atm-annex-a/config
76 $(call KernelPackage/sangam-atm/config)
80 $(MAKE) -C "$(LINUX_DIR)" \
81 CROSS_COMPILE="$(TARGET_CROSS)" \
82 ARCH="$(LINUX_KARCH)" \
83 SUBDIRS="$(PKG_BUILD_DIR)" \
87 define KernelPackage/sangam-atm-annex-a/install
88 mkdir -p $(1)/lib/firmware
89 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700mp.bin $(1)/lib/firmware/
90 $(LN) ar0700mp.bin $(1)/lib/firmware/ar0700xx.bin
93 define KernelPackage/sangam-atm-annex-b/install
94 mkdir -p $(1)/lib/firmware
95 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700db.bin $(1)/lib/firmware/
96 $(LN) ar0700db.bin $(1)/lib/firmware/ar0700xx.bin
99 $(eval $(call KernelPackage,sangam-atm-annex-a))
100 $(eval $(call KernelPackage,sangam-atm-annex-b))