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
12 PKG_NAME
:=avalanche-cpmac
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=http
://downloads.openwrt.org
/sources
18 PKG_MD5SUM
:=ce46849a8f1055cef09c59c6bdb7f86a
21 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/kmod-avalanche-cpmac
27 CATEGORY
:=Kernel modules
28 SUBMENU
:=Network Devices
29 DEPENDS
:=@LINUX_2_4_AR7
+kmod-atm
31 TITLE
:=AR7 ADSL driver
(Annex A
)
32 DESCRIPTION
:=The AR7 ADSL driver for Annex A
33 VERSION
:=$(PKG_VERSION
)+$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
37 $(MAKE
) -C
"$(LINUX_DIR)" \
38 CROSS_COMPILE
="$(TARGET_CROSS)" \
39 ARCH
="$(LINUX_KARCH)" \
40 SUBDIRS
="$(PKG_BUILD_DIR)" \
41 EXTRA_CFLAGS
="-DCONFIG_AVALANCHE_CPMAC_AUTO -DCONFIG_MIPS_CPMAC_INIT_BUF_MALLOC -DCONFIG_MIPS_CPMAC_PORTS=1" \
45 define Package
/kmod-avalanche-cpmac
/install
46 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
47 $(CP
) $(PKG_BUILD_DIR
)/avalanche_cpmac.
$(LINUX_KMOD_SUFFIX
) \
48 $(1)/lib
/modules
/$(LINUX_VERSION
)
51 $(eval
$(call BuildPackage
,kmod-avalanche-cpmac
))