2015-10-15 22:12:13 +00:00
|
|
|
#
|
2014-11-06 19:35:34 +00:00
|
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
2006-10-17 14:47:54 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
2007-04-20 23:48:26 +00:00
|
|
|
PKG_NAME:=sangam_atm
|
2009-12-22 12:28:02 +00:00
|
|
|
|
2010-03-07 18:16:07 +00:00
|
|
|
ifeq ($(CONFIG_AR7_ATM_FW_VERSION_705),y)
|
|
|
|
PKG_VERSION:=D7.05.01.00
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=874b5baff92159e99cef0dfb839d6fdc124a46aef7374653064d29d9eee9a3c9
|
2010-03-07 18:16:07 +00:00
|
|
|
PKG_RELEASE:=R1
|
|
|
|
PATCH_DIR:=patches-$(PKG_VERSION)
|
|
|
|
endif
|
|
|
|
|
2009-12-22 12:28:02 +00:00
|
|
|
ifeq ($(CONFIG_AR7_ATM_FW_VERSION_704),y)
|
2009-08-03 22:21:51 +00:00
|
|
|
PKG_VERSION:=D7.04.03.00
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=af2e203e4c86f9a86cdd07d172897b07e66a25379376e8da4c1b14816f86b58f
|
2009-08-03 22:21:51 +00:00
|
|
|
PKG_RELEASE:=R1
|
2010-03-07 18:16:07 +00:00
|
|
|
PATCH_DIR:=patches-$(PKG_VERSION)
|
2009-12-22 12:28:02 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_AR7_ATM_FW_VERSION_703),y)
|
|
|
|
PKG_VERSION:=D7.03.01.00
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=2d156164ef5abbe10ffb2400ada4cef2035df3ba2b3f866f00bdede489861c4d
|
2009-12-22 12:28:02 +00:00
|
|
|
PKG_RELEASE:=R2
|
2010-03-07 18:16:07 +00:00
|
|
|
PATCH_DIR:=patches-D7.04.03.00
|
2009-12-22 12:28:02 +00:00
|
|
|
endif
|
2006-10-17 14:47:54 +00:00
|
|
|
|
2007-10-24 15:21:18 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE).tar.bz2
|
2008-01-15 03:25:11 +00:00
|
|
|
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
|
2006-10-17 14:47:54 +00:00
|
|
|
|
2016-04-26 21:09:12 +00:00
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
|
2006-10-17 14:47:54 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2007-09-07 08:34:51 +00:00
|
|
|
define KernelPackage/sangam-atm/Default
|
2006-10-17 14:47:54 +00:00
|
|
|
SUBMENU:=Network Devices
|
2015-07-12 11:57:40 +00:00
|
|
|
DEPENDS:=@TARGET_ar7_generic +kmod-atm
|
2007-09-07 08:34:51 +00:00
|
|
|
TITLE:=AR7 ADSL driver
|
2010-07-12 14:06:13 +00:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/tiatm.ko
|
2006-10-24 13:52:56 +00:00
|
|
|
AUTOLOAD:=$(call AutoLoad,50,tiatm)
|
2012-10-10 13:21:54 +00:00
|
|
|
MAINTAINER:=Florian Fainelli <florian@openwrt.org>
|
2010-04-16 10:48:09 +00:00
|
|
|
MENU:=1
|
2006-10-17 14:47:54 +00:00
|
|
|
endef
|
|
|
|
|
2009-12-22 12:28:02 +00:00
|
|
|
define KernelPackage/sangam-atm/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
2007-09-07 08:34:51 +00:00
|
|
|
define KernelPackage/sangam-atm-annex-a
|
|
|
|
$(call KernelPackage/sangam-atm/Default)
|
|
|
|
TITLE+= (Annex A, ADSL over POTS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/sangam-atm-annex-a/description
|
|
|
|
The AR7 ADSL driver for Annex A (ADSL over POTS).
|
|
|
|
endef
|
|
|
|
|
2009-12-22 12:28:02 +00:00
|
|
|
define KernelPackage/sangam-atm-annex-a/config
|
|
|
|
$(call KernelPackage/sangam-atm/config)
|
|
|
|
endef
|
|
|
|
|
2006-10-24 13:52:56 +00:00
|
|
|
define KernelPackage/sangam-atm-annex-b
|
2007-09-07 08:34:51 +00:00
|
|
|
$(call KernelPackage/sangam-atm/Default)
|
|
|
|
TITLE+= (Annex B, ADSL over ISDN)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/sangam-atm-annex-b/description
|
|
|
|
The AR7 ADSL driver for Annex B (ADSL over ISDN).
|
2006-10-17 14:47:54 +00:00
|
|
|
endef
|
|
|
|
|
2009-12-22 12:28:02 +00:00
|
|
|
define KernelPackage/sangam-atm-annex-a/config
|
|
|
|
$(call KernelPackage/sangam-atm/config)
|
|
|
|
endef
|
|
|
|
|
2006-10-17 14:47:54 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
2017-10-13 09:10:03 +00:00
|
|
|
$(KERNEL_MAKE_FLAGS) \
|
2006-10-17 14:47:54 +00:00
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)" \
|
|
|
|
modules
|
|
|
|
endef
|
|
|
|
|
2006-10-24 13:52:56 +00:00
|
|
|
define KernelPackage/sangam-atm-annex-a/install
|
2007-04-20 23:48:26 +00:00
|
|
|
mkdir -p $(1)/lib/firmware
|
2009-05-26 08:43:52 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700mp.bin $(1)/lib/firmware/
|
2014-11-06 19:35:34 +00:00
|
|
|
$(LN) ar0700mp.bin $(1)/lib/firmware/ar0700xx.bin
|
2006-10-17 14:47:54 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-24 13:52:56 +00:00
|
|
|
define KernelPackage/sangam-atm-annex-b/install
|
2007-04-20 23:48:26 +00:00
|
|
|
mkdir -p $(1)/lib/firmware
|
2009-05-26 08:43:52 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700db.bin $(1)/lib/firmware/
|
2014-11-06 19:35:34 +00:00
|
|
|
$(LN) ar0700db.bin $(1)/lib/firmware/ar0700xx.bin
|
2006-10-17 14:47:54 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-24 13:52:56 +00:00
|
|
|
$(eval $(call KernelPackage,sangam-atm-annex-a))
|
|
|
|
$(eval $(call KernelPackage,sangam-atm-annex-b))
|