2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
13 PKG_VERSION:=07.02.01.00
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
18 PKG_MD5SUM:=dc4d5c36532503a2f234f3303a0bf563
20 include $(INCLUDE_DIR)/package.mk
22 define KernelPackage/sangam-atm-annex-a
23 SUBMENU:=Network Devices
24 DEPENDS:=@TARGET_AR7 +kmod-atm
25 TITLE:=AR7 ADSL driver (Annex A, ADSL over POTS)
26 DESCRIPTION:=The AR7 ADSL driver for Annex A (ADSL over POTS)
27 FILES:=$(PKG_BUILD_DIR)/tiatm.$(LINUX_KMOD_SUFFIX)
28 AUTOLOAD:=$(call AutoLoad,50,tiatm)
31 define KernelPackage/sangam-atm-annex-b
32 $(call KernelPackage/sangam-atm-annex-a)
33 TITLE:=AR7 ADSL driver (Annex B, ADSL over ISDN)
34 DESCRIPTION:=The AR7 ADSL driver for Annex B (ADSL over ISDN)
38 $(MAKE) -C "$(LINUX_DIR)" \
39 CROSS_COMPILE="$(TARGET_CROSS)" \
40 ARCH="$(LINUX_KARCH)" \
41 SUBDIRS="$(PKG_BUILD_DIR)" \
45 define KernelPackage/sangam-atm-annex-a/install
46 mkdir -p $(1)/lib/firmware
47 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700mp.bin $(1)/lib/firmware/ar0700xx.bin
50 define KernelPackage/sangam-atm-annex-b/install
51 mkdir -p $(1)/lib/firmware
52 $(INSTALL_DATA) $(PKG_BUILD_DIR)/ar0700db.bin $(1)/lib/firmware/ar0700xx.bin
55 $(eval $(call KernelPackage,sangam-atm-annex-a))
56 $(eval $(call KernelPackage,sangam-atm-annex-b))