bfacccd40c9f9e20590202d95ab4ebed02d2f450
[openwrt/svn-archive/archive.git] / package / network / config / ltq-vdsl-app / Makefile
1 # Copyright (C) 2010 OpenWrt.org
2 # Copyright (C) 2015 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.16.6.3
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_MD5SUM:=8bedf330a456fe0864844e61b57da627
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 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ltq-vdsl-app
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=Lantiq VDSL userland tool
28 URL:=http://www.lantiq.com/
29 DEPENDS:=@TARGET_lantiq_xrx200 +libpthread +librt +atm-esi
30 endef
31
32 define Package/ltq-vdsl-app/description
33 Userland tool needed to control Lantiq VDSL CPE
34 endef
35
36 CONFIGURE_ARGS += \
37 --enable-vrx \
38 --enable-vrx-device=vr9 \
39 --enable-driver-include="-I$(STAGING_DIR)/usr/include/drv_vdsl_cpe_api" \
40 --enable-device-driver-include="-I$(STAGING_DIR)/usr/include/vdsl/" \
41 --enable-ifxos \
42 --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
43 --enable-ifxos-library="-I$(STAGING_DIR)/usr/lib" \
44 --enable-add-appl-cflags="-DMAX_CLI_PIPES=1" \
45 --enable-debug \
46 --disable-dti \
47 --with-channels-per-line="1" \
48
49 #CONFIGURE_ARGS += --enable-model=full
50 #CONFIGURE_ARGS += --enable-model=lite
51 #CONFIGURE_ARGS += --enable-model=footprint
52 CONFIGURE_ARGS += \
53 --enable-model=typical \
54 --enable-dsl-pm-showtime \
55 --disable-dsl-ceoc
56 #CONFIGURE_ARGS += --enable-model=debug
57
58 define Package/ltq-vdsl-app/install
59 $(INSTALL_DIR) $(1)/etc/init.d $(1)/sbin
60 $(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
61 $(INSTALL_BIN) ./files/vdsl_cpe_control_wrapper $(1)/sbin/
62
63 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin/vdsl_cpe_control
64 $(INSTALL_BIN) ./files/dsl_cpe_pipe.sh $(1)/sbin/
65 endef
66
67 $(eval $(call BuildPackage,ltq-vdsl-app))