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.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_VERSION
:=D7.03
.01.00
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_RELEASE
).
tar.bz2
16 PKG_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
17 PKG_MD5SUM
:=bc6e9c6adb1be25820c7ee661de8ca7d
19 include $(INCLUDE_DIR
)/package.mk
21 define KernelPackage
/sangam-atm
/Default
22 SUBMENU
:=Network Devices
23 DEPENDS
:=@TARGET_ar7
+kmod-atm
24 TITLE
:=AR7 ADSL driver
25 FILES
:=$(PKG_BUILD_DIR
)/tiatm.
$(LINUX_KMOD_SUFFIX
)
26 AUTOLOAD
:=$(call AutoLoad
,50,tiatm
)
29 define KernelPackage
/sangam-atm-annex-a
30 $(call KernelPackage
/sangam-atm
/Default
)
31 TITLE
+= (Annex A
, ADSL over POTS
)
34 define KernelPackage
/sangam-atm-annex-a
/description
35 The AR7 ADSL driver for Annex A
(ADSL over POTS
).
38 define KernelPackage
/sangam-atm-annex-b
39 $(call KernelPackage
/sangam-atm
/Default
)
40 TITLE
+= (Annex B
, ADSL over ISDN
)
43 define KernelPackage
/sangam-atm-annex-b
/description
44 The AR7 ADSL driver for Annex B
(ADSL over ISDN
).
48 $(MAKE
) -C
"$(LINUX_DIR)" \
49 CROSS_COMPILE
="$(TARGET_CROSS)" \
50 ARCH
="$(LINUX_KARCH)" \
51 SUBDIRS
="$(PKG_BUILD_DIR)" \
55 define KernelPackage
/sangam-atm-annex-a
/install
56 mkdir
-p
$(1)/lib
/firmware
57 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ar0700mp.bin
$(1)/lib
/firmware
/ar0700xx.bin
60 define KernelPackage
/sangam-atm-annex-b
/install
61 mkdir
-p
$(1)/lib
/firmware
62 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ar0700db.bin
$(1)/lib
/firmware
/ar0700xx.bin
65 $(eval
$(call KernelPackage
,sangam-atm-annex-a
))
66 $(eval
$(call KernelPackage
,sangam-atm-annex-b
))