Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. include $(TOPDIR)/rules.mk
  7. include $(INCLUDE_DIR)/kernel.mk
  8. PKG_NAME:=ltq-vdsl-app
  9. PKG_VERSION:=4.17.18.6
  10. PKG_RELEASE:=1
  11. PKG_BASE_NAME:=dsl_cpe_control
  12. PKG_SOURCE:=$(PKG_BASE_NAME)_vrx-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
  14. PKG_HASH:=da8bb929526a61aea0e153ef524331fcd472a1ebbc6d88ca017735a4f82ece02
  15. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_BASE_NAME)-$(PKG_VERSION)
  16. PKG_LICENSE:=BSD-2-Clause
  17. PKG_BUILD_DEPENDS:=kmod-ltq-vdsl-vr9
  18. PKG_FLAGS:=nonshared
  19. include $(INCLUDE_DIR)/package.mk
  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_xrx200 +libpthread +librt +atm-esi
  26. endef
  27. define Package/ltq-vdsl-app/description
  28. Userland tool needed to control Lantiq VDSL CPE
  29. endef
  30. CONFIGURE_ARGS += \
  31. --enable-vrx \
  32. --enable-vrx-device=vr9 \
  33. --enable-driver-include="-I$(STAGING_DIR)/usr/include/drv_vdsl_cpe_api" \
  34. --enable-device-driver-include="-I$(STAGING_DIR)/usr/include/vdsl/" \
  35. --enable-ifxos \
  36. --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
  37. --enable-ifxos-library="-I$(STAGING_DIR)/usr/lib" \
  38. --enable-add-appl-cflags="-DMAX_CLI_PIPES=1" \
  39. --enable-debug \
  40. --disable-dti \
  41. --with-channels-per-line="1" \
  42. #CONFIGURE_ARGS += --enable-model=full
  43. #CONFIGURE_ARGS += --enable-model=lite
  44. #CONFIGURE_ARGS += --enable-model=footprint
  45. CONFIGURE_ARGS += \
  46. --enable-model=typical \
  47. --enable-dsl-pm-showtime \
  48. --disable-dsl-ceoc
  49. #CONFIGURE_ARGS += --enable-model=debug
  50. define Package/ltq-vdsl-app/install
  51. $(INSTALL_DIR) $(1)/etc/init.d $(1)/sbin
  52. $(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
  53. $(INSTALL_BIN) ./files/vdsl_cpe_control_wrapper $(1)/sbin/
  54. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin/vdsl_cpe_control
  55. $(INSTALL_BIN) ./files/dsl_cpe_pipe.sh $(1)/sbin/
  56. endef
  57. $(eval $(call BuildPackage,ltq-vdsl-app))