2 # Copyright (C) 2006-2009 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_704
),y
)
14 PKG_VERSION
:=D7.04
.03.00
15 PKG_MD5SUM
:=3d76004e46f09e88931f91670cb420ad
19 ifeq ($(CONFIG_AR7_ATM_FW_VERSION_703
),y
)
20 PKG_VERSION
:=D7.03
.01.00
21 PKG_MD5SUM
:=bc6e9c6adb1be25820c7ee661de8ca7d
25 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_RELEASE
).
tar.bz2
26 PKG_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
28 include $(INCLUDE_DIR
)/package.mk
30 define KernelPackage
/sangam-atm
/Default
31 SUBMENU
:=Network Devices
32 DEPENDS
:=@TARGET_ar7
+kmod-atm
33 TITLE
:=AR7 ADSL driver
34 FILES
:=$(PKG_BUILD_DIR
)/tiatm.
$(LINUX_KMOD_SUFFIX
)
35 AUTOLOAD
:=$(call AutoLoad
,50,tiatm
)
38 define KernelPackage
/sangam-atm
/config
39 source
"$(SOURCE)/Config.in"
42 define KernelPackage
/sangam-atm-annex-a
43 $(call KernelPackage
/sangam-atm
/Default
)
44 TITLE
+= (Annex A
, ADSL over POTS
)
47 define KernelPackage
/sangam-atm-annex-a
/description
48 The AR7 ADSL driver for Annex A
(ADSL over POTS
).
51 define KernelPackage
/sangam-atm-annex-a
/config
52 $(call KernelPackage
/sangam-atm
/config
)
55 define KernelPackage
/sangam-atm-annex-b
56 $(call KernelPackage
/sangam-atm
/Default
)
57 TITLE
+= (Annex B
, ADSL over ISDN
)
60 define KernelPackage
/sangam-atm-annex-b
/description
61 The AR7 ADSL driver for Annex B
(ADSL over ISDN
).
64 define KernelPackage
/sangam-atm-annex-a
/config
65 $(call KernelPackage
/sangam-atm
/config
)
69 $(MAKE
) -C
"$(LINUX_DIR)" \
70 CROSS_COMPILE
="$(TARGET_CROSS)" \
71 ARCH
="$(LINUX_KARCH)" \
72 SUBDIRS
="$(PKG_BUILD_DIR)" \
76 define KernelPackage
/sangam-atm-annex-a
/install
77 mkdir
-p
$(1)/lib
/firmware
78 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ar0700mp.bin
$(1)/lib
/firmware
/
79 ln
-sf ar0700mp.bin
$(1)/lib
/firmware
/ar0700xx.bin
82 define KernelPackage
/sangam-atm-annex-b
/install
83 mkdir
-p
$(1)/lib
/firmware
84 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ar0700db.bin
$(1)/lib
/firmware
/
85 ln
-sf ar0700db.bin
$(1)/lib
/firmware
/ar0700xx.bin
88 $(eval
$(call KernelPackage
,sangam-atm-annex-a
))
89 $(eval
$(call KernelPackage
,sangam-atm-annex-b
))