lantiq: revert vr9 driver update as it causes problems
[openwrt/openwrt.git] / package / kernel / lantiq / ltq-vdsl / Makefile
1 # Copyright (C) 2012 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5
6 include $(TOPDIR)/rules.mk
7 include $(INCLUDE_DIR)/kernel.mk
8
9 PKG_NAME:=ltq-vdsl-vr9
10 PKG_VERSION:=4.11.4
11 PKG_RELEASE:=1
12
13 PKG_BASE_NAME:=drv_dsl_cpe_api_vrx
14 PKG_SOURCE:=$(PKG_BASE_NAME)-$(PKG_VERSION).tar.gz
15 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/drv_dsl_cpe_api-$(PKG_VERSION)
16 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
17 PKG_MD5SUM:=b6d9c1e3c5db1bfcd6e81bb2f582cadb
18
19 PKG_USE_MIPS16:=0
20
21 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define KernelPackage/ltq-vdsl-vr9
26 TITLE:=vdsl driver
27 SECTION:=sys
28 SUBMENU:=Network Devices
29 DEPENDS:=@TARGET_lantiq_xrx200 +kmod-ltq-vdsl-vr9-mei
30 FILES:=$(PKG_BUILD_DIR)/src/drv_dsl_cpe_api.ko
31 AUTOLOAD:=$(call AutoLoad,51,drv_dsl_cpe_api)
32 endef
33
34 define Package/ltq-vdsl-vr9/description
35 This package contains the Lantiq DSL CPE API driver.
36
37 Supported Devices:
38 - VRX200 Family
39 endef
40
41 EXTRA_CFLAGS = -fno-pic -mno-abicalls -mlong-calls -G 0
42
43 MAKE_FLAGS += \
44 SHELL="$(BASH)"
45
46 CONFIGURE_ARGS += --enable-kernel-include="$(LINUX_DIR)/include" \
47 --with-max-device="1" \
48 --with-lines-per-device="1" \
49 --with-channels-per-line="1" \
50 --enable-vrx \
51 --enable-ifxos \
52 --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
53 --enable-driver-include="-I$(STAGING_DIR)/usr/include/vdsl" \
54 --enable-add-drv-cflags="-DMODULE -DINCLUDE_DSL_ATM_PTM_INTERFACE_SUPPORT -DDSL_DEBUG_DISABLE" \
55 --enable-adsl-led=no \
56 --enable-adsl-mib=no \
57 --enable-dsl-ceoc=no \
58 --enable-dsl-bonding=no \
59 --enable-linux-26 \
60 --enable-kernelbuild="$(LINUX_DIR)" \
61 KERNEL_ARCH=mips
62
63 CONFIGURE_ARGS += --enable-model=full
64 #CONFIGURE_ARGS += --enable-model=lite
65 #CONFIGURE_ARGS += --enable-model=footprint
66 #CONFIGURE_ARGS += --enable-model=typical
67 #CONFIGURE_ARGS += --enable-model=debug
68
69 define Build/InstallDev
70 $(INSTALL_DIR) $(1)/usr/include/drv_vdsl_cpe_api
71 $(CP) $(PKG_BUILD_DIR)/src/include/drv_dsl_cpe*.h $(1)/usr/include/drv_vdsl_cpe_api/
72 endef
73
74 $(eval $(call KernelPackage,ltq-vdsl-vr9))