20b506c48e079d708f27b00aeac298e0e769bd4e
[openwrt/openwrt.git] / package / network / config / ltq-vdsl-app / Makefile
1 # Copyright (C) 2010 OpenWrt.org
2 # Copyright (C) 2015-2016 Lantiq Beteiligungs GmbH & Co KG.
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/kernel.mk
9
10 PKG_NAME:=ltq-vdsl-app
11 PKG_VERSION:=4.17.18.6
12 PKG_RELEASE:=1
13 PKG_BASE_NAME:=dsl_cpe_control
14 PKG_SOURCE:=$(PKG_BASE_NAME)_vrx-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
16 PKG_HASH:=da8bb929526a61aea0e153ef524331fcd472a1ebbc6d88ca017735a4f82ece02
17 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_BASE_NAME)-$(PKG_VERSION)
18 PKG_LICENSE:=BSD-2-Clause
19
20 PKG_BUILD_DEPENDS:=kmod-ltq-vdsl-vr9
21
22 PKG_FLAGS:=nonshared
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/ltq-vdsl-app
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=Lantiq VDSL userland tool
30 URL:=http://www.lantiq.com/
31 DEPENDS:=@TARGET_lantiq_xrx200 +libpthread +librt
32 endef
33
34 define Package/ltq-vdsl-app/description
35 Userland tool needed to control Lantiq VDSL CPE
36 endef
37
38 CONFIGURE_ARGS += \
39 --enable-vrx \
40 --enable-vrx-device=vr9 \
41 --enable-driver-include="-I$(STAGING_DIR)/usr/include/drv_vdsl_cpe_api" \
42 --enable-device-driver-include="-I$(STAGING_DIR)/usr/include/vdsl/" \
43 --enable-ifxos \
44 --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
45 --enable-ifxos-library="-I$(STAGING_DIR)/usr/lib" \
46 --enable-add-appl-cflags="-DMAX_CLI_PIPES=1" \
47 --enable-debug \
48 --disable-dti \
49 --with-channels-per-line="1" \
50
51 #CONFIGURE_ARGS += --enable-model=full
52 #CONFIGURE_ARGS += --enable-model=lite
53 #CONFIGURE_ARGS += --enable-model=footprint
54 CONFIGURE_ARGS += \
55 --enable-model=typical \
56 --enable-dsl-pm-showtime \
57 --disable-dsl-ceoc
58 #CONFIGURE_ARGS += --enable-model=debug
59
60 define Package/ltq-vdsl-app/install
61 $(INSTALL_DIR) $(1)/etc/init.d $(1)/sbin $(1)/etc/hotplug.d/dsl
62 $(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
63 $(INSTALL_BIN) ./files/10_atm.sh $(1)/etc/hotplug.d/dsl
64 $(INSTALL_BIN) ./files/10_ptm.sh $(1)/etc/hotplug.d/dsl
65
66 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin/vdsl_cpe_control
67 $(INSTALL_BIN) ./files/dsl_cpe_pipe.sh $(1)/sbin/
68 endef
69
70 $(eval $(call BuildPackage,ltq-vdsl-app))