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
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
18 PKG_MD5SUM
:=90c10702c9c3129e2ad1c01ce3975bf5
21 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define KernelPackage
/sangam-atm-annex-a
26 SUBMENU
:=Network Devices
27 DEPENDS
:=@LINUX_2_4_AR7
+kmod-atm
28 TITLE
:=AR7 ADSL driver
(Annex A
)
29 DESCRIPTION
:=The AR7 ADSL driver for Annex A
30 VERSION
:=$(PKG_VERSION
)+$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
31 FILES
:=$(PKG_BUILD_DIR
)/tiatm.
$(LINUX_KMOD_SUFFIX
)
32 AUTOLOAD
:=$(call AutoLoad
,50,tiatm
)
35 define KernelPackage
/sangam-atm-annex-b
36 $(call Package
/kmod-sangam-atm-annex-a
)
37 TITLE
:=AR7 ADSL driver
(Annex B
)
38 DESCRIPTION
:=The AR7 ADSL driver for Annex B
42 $(MAKE
) -C
"$(LINUX_DIR)" \
43 CROSS_COMPILE
="$(TARGET_CROSS)" \
44 ARCH
="$(LINUX_KARCH)" \
45 SUBDIRS
="$(PKG_BUILD_DIR)" \
49 define KernelPackage
/sangam-atm-annex-a
/install
50 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ar0700xx_a.bin
$(1)/lib
/modules
/ar0700xx.bin
53 define KernelPackage
/sangam-atm-annex-b
/install
54 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ar0700xx_b.bin
$(1)/lib
/modules
/ar0700xx.bin
57 $(eval
$(call KernelPackage
,sangam-atm-annex-a
))
58 $(eval
$(call KernelPackage
,sangam-atm-annex-b
))