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
/Default
23 SUBMENU
:=Network Devices
24 DEPENDS
:=@TARGET_ar7
+kmod-atm
25 TITLE
:=AR7 ADSL driver
26 FILES
:=$(PKG_BUILD_DIR
)/tiatm.
$(LINUX_KMOD_SUFFIX
)
27 AUTOLOAD
:=$(call AutoLoad
,50,tiatm
)
30 define KernelPackage
/sangam-atm-annex-a
31 $(call KernelPackage
/sangam-atm
/Default
)
32 TITLE
+= (Annex A
, ADSL over POTS
)
35 define KernelPackage
/sangam-atm-annex-a
/description
36 The AR7 ADSL driver for Annex A
(ADSL over POTS
).
39 define KernelPackage
/sangam-atm-annex-b
40 $(call KernelPackage
/sangam-atm
/Default
)
41 TITLE
+= (Annex B
, ADSL over ISDN
)
44 define KernelPackage
/sangam-atm-annex-b
/description
45 The AR7 ADSL driver for Annex B
(ADSL over ISDN
).
49 $(MAKE
) -C
"$(LINUX_DIR)" \
50 CROSS_COMPILE
="$(TARGET_CROSS)" \
51 ARCH
="$(LINUX_KARCH)" \
52 SUBDIRS
="$(PKG_BUILD_DIR)" \
56 define KernelPackage
/sangam-atm-annex-a
/install
57 mkdir
-p
$(1)/lib
/firmware
58 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ar0700mp.bin
$(1)/lib
/firmware
/ar0700xx.bin
61 define KernelPackage
/sangam-atm-annex-b
/install
62 mkdir
-p
$(1)/lib
/firmware
63 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ar0700db.bin
$(1)/lib
/firmware
/ar0700xx.bin
66 $(eval
$(call KernelPackage
,sangam-atm-annex-a
))
67 $(eval
$(call KernelPackage
,sangam-atm-annex-b
))