3de29d52054299622be3fbfce408183ee35f73b3
[openwrt.git] / package / kernel / lantiq / ltq-vdsl-app / Makefile
1 # Copyright (C) 2010 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-app
10 PKG_VERSION:=4.11.4
11 PKG_RELEASE:=1
12 PKG_BASE_NAME:=dsl_cpe_control_vrx
13 PKG_SOURCE:=$(PKG_BASE_NAME)-$(PKG_VERSION).tar.gz
14 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION)
15
16 PKG_BUILD_DEPENDS:=kmod-ltq-vdsl-vr9
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/ltq-vdsl-app
21   SECTION:=net
22   CATEGORY:=Network
23   TITLE:=Lantiq VDSL userland tool
24   URL:=http://www.lantiq.com/
25   DEPENDS:=@TARGET_lantiq_xway +libpthread
26 endef
27
28 define Package/ltq-vdsl-app/description
29   Userland tool needed to control Lantiq VDSL CPE
30 endef
31
32 CONFIGURE_ARGS += \
33         --with-max-device="1" \
34         --with-lines-per-device="1" \
35         --with-channels-per-line="1" \
36         --enable-vrx \
37         --enable-driver-include="-I$(STAGING_DIR)/usr/include/drv_vdsl_cpe_api" \
38         --enable-device-driver-include="-I$(STAGING_DIR)/usr/include/vdsl/" \
39         --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
40         --enable-ifxos \
41         --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
42         --enable-ifxos-library="-I$(STAGING_DIR)/usr/lib" \
43         --enable-dsl-ceoc \
44         --enable-dsl-pm-total \
45         --enable-dsl-pm-showtime \
46         --enable-dsl-pm-line-counters \
47         --enable-dsl-pm-line-failure-counters \
48         --enable-dsl-pm-datapath-counters \
49         --enable-dsl-pm-datapath-failure-counters \
50         --enable-deprecated \
51         --disable-soap-support \
52         --enable-dsl-bonding=no \
53         --disable-dti
54
55 ifeq ($(CONFIG_IFX_CLI),y)
56 CONFIGURE_ARGS += \
57         --enable-cli-support
58 endif
59
60 CONFIGURE_ARGS += --enable-model=full
61 #CONFIGURE_ARGS += --enable-model=lite
62 #CONFIGURE_ARGS += --enable-model=footprint
63 #CONFIGURE_ARGS += --enable-model=typical
64 #CONFIGURE_ARGS += --enable-model=debug
65
66 define Package/ltq-vdsl-app/install
67         $(INSTALL_DIR) $(1)/etc/init.d
68         $(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
69
70         $(INSTALL_DIR) $(1)/sbin
71         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin/vdsl_cpe_control
72         $(INSTALL_BIN) ./files/dsl_notify.sh $(1)/sbin
73 endef
74
75 $(eval $(call BuildPackage,ltq-vdsl-app))