lantiq: ltq-vdsl-app: add dsl_cpe_pipe.sh
[openwrt/openwrt.git] / package / network / config / 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.16.2.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_SOURCE_URL:=https://github.com/xdarklight/$(PKG_BASE_NAME)/archive/v$(PKG_VERSION)
15 PKG_MD5SUM:=487925ef5327ea38c544035b388de8bb
16 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_BASE_NAME)-$(PKG_VERSION)
17 PKG_LICENSE:=BSD-2-Clause
18
19 PKG_BUILD_DEPENDS:=kmod-ltq-vdsl-vr9
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ltq-vdsl-app
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=Lantiq VDSL userland tool
27 URL:=http://www.lantiq.com/
28 DEPENDS:=@TARGET_lantiq_xrx200 +libpthread +librt
29 endef
30
31 define Package/ltq-vdsl-app/description
32 Userland tool needed to control Lantiq VDSL CPE
33 endef
34
35 CONFIGURE_ARGS += \
36 --with-max-device="1" \
37 --with-lines-per-device="1" \
38 --with-channels-per-line="1" \
39 --enable-vrx \
40 --enable-driver-include="-I$(STAGING_DIR)/usr/include/drv_vdsl_cpe_api" \
41 --enable-device-driver-include="-I$(STAGING_DIR)/usr/include/vdsl/" \
42 --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
43 --enable-ifxos \
44 --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
45 --enable-ifxos-library="-I$(STAGING_DIR)/usr/lib" \
46 --disable-dsl-ceoc \
47 --enable-dsl-pm-total \
48 --enable-dsl-pm-showtime \
49 --enable-dsl-pm-line-counters \
50 --enable-dsl-pm-line-failure-counters \
51 --enable-dsl-pm-datapath-counters \
52 --enable-dsl-pm-datapath-failure-counters \
53 --enable-deprecated \
54 --disable-soap-support \
55 --enable-dsl-bonding=no \
56 --enable-debug-prints=err \
57 --disable-dti \
58 --enable-debug
59
60 ifeq ($(CONFIG_IFX_CLI),y)
61 CONFIGURE_ARGS += \
62 --enable-cli-support
63 endif
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 Package/ltq-vdsl-app/install
72 $(INSTALL_DIR) $(1)/etc/init.d $(1)/sbin
73 $(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
74 $(INSTALL_BIN) ./files/vdsl_cpe_control_wrapper $(1)/sbin/
75
76 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin/vdsl_cpe_control
77 $(INSTALL_BIN) ./files/dsl_cpe_pipe.sh $(1)/sbin/
78 endef
79
80 $(eval $(call BuildPackage,ltq-vdsl-app))