617d9bfaea67c07566dc5d3ca9d17962d40571df
[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.16.2.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)/$(PKG_BASE_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL:=https://github.com/xdarklight/$(PKG_BASE_NAME)/archive/v$(PKG_VERSION)
17 PKG_MD5SUM:=0a3e35d199eb8936f3e8f61bb074223a
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-vrx-device=vr9 \
52 --enable-ifxos \
53 --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
54 --enable-driver-include="-I$(STAGING_DIR)/usr/include/vdsl" \
55 --enable-add-drv-cflags="-DMODULE -DINCLUDE_DSL_ATM_PTM_INTERFACE_SUPPORT" \
56 --enable-adsl-led=no \
57 --enable-adsl-mib=no \
58 --enable-dsl-ceoc=no \
59 --enable-dsl-bonding=no \
60 --enable-linux-26 \
61 --enable-kernelbuild="$(LINUX_DIR)" \
62 --enable-debug-prints=no \
63 KERNEL_ARCH=mips
64
65 CONFIGURE_ARGS += --enable-model=full
66 #CONFIGURE_ARGS += --enable-model=lite
67 #CONFIGURE_ARGS += --enable-model=footprint
68 #CONFIGURE_ARGS += --enable-model=typical
69 #CONFIGURE_ARGS += --enable-model=debug
70
71 define Build/InstallDev
72 $(INSTALL_DIR) $(1)/usr/include/drv_vdsl_cpe_api
73 $(CP) $(PKG_BUILD_DIR)/src/include/drv_dsl_cpe*.h $(1)/usr/include/drv_vdsl_cpe_api/
74 endef
75
76 $(eval $(call KernelPackage,ltq-vdsl-vr9))