Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #
  2. # Copyright (C) 2011 OpenWrt.org
  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. PKG_BASE_NAME:=dsl_cpe_control_danube
  10. PKG_VERSION:=3.24.4.4
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_BASE_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_BUILD_DIR:=$(BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION)
  14. PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
  15. PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/ltq-dsl-app
  18. SECTION:=net
  19. CATEGORY:=Network
  20. TITLE:=Lantiq DSL userland tool
  21. URL:=http://www.lantiq.com/
  22. DEPENDS:=@TARGET_lantiq_xway +kmod-ltq-dsl +libpthread
  23. MAINTAINER:=John Crispin <[email protected]>
  24. endef
  25. define Package/ltq-dsl-app/description
  26. Infineon DSL CPE API for Amazon SE, Danube and Vinax.
  27. endef
  28. IFX_DSL_MAX_DEVICE=1
  29. IFX_DSL_LINES_PER_DEVICE=1
  30. IFX_DSL_CHANNELS_PER_LINE=1
  31. #CONFIG_IFX_CLI=y
  32. CONFIGURE_ARGS += \
  33. --with-max-device="$(IFX_DSL_MAX_DEVICE)" \
  34. --with-lines-per-device="$(IFX_DSL_LINES_PER_DEVICE)" \
  35. --with-channels-per-line="$(IFX_DSL_CHANNELS_PER_LINE)" \
  36. --enable-danube \
  37. --enable-driver-include="-I$(STAGING_DIR)/usr/include" \
  38. --enable-debug-prints \
  39. --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
  40. --enable-cmv-scripts \
  41. --enable-debug-tool-interface \
  42. --enable-adsl-led \
  43. --enable-dsl-ceoc \
  44. --enable-script-notification \
  45. --enable-dsl-pm \
  46. --enable-dsl-pm-total \
  47. --enable-dsl-pm-history \
  48. --enable-dsl-pm-showtime \
  49. --enable-dsl-pm-channel-counters \
  50. --enable-dsl-pm-datapath-counters \
  51. --enable-dsl-pm-line-counters \
  52. --enable-dsl-pm-channel-thresholds \
  53. --enable-dsl-pm-datapath-thresholds \
  54. --enable-dsl-pm-line-thresholds \
  55. --enable-dsl-pm-optional-parameters
  56. ifeq ($(CONFIG_IFX_CLI),y)
  57. CONFIGURE_ARGS += \
  58. --enable-cli-support \
  59. --enable-soap-support
  60. endif
  61. TARGET_CFLAGS += -I$(LINUX_DIR)/include
  62. define Package/ltq-dsl-app/install
  63. $(INSTALL_DIR) $(1)/etc/init.d
  64. $(INSTALL_BIN) ./files/ifx_cpe_control_init.sh $(1)/etc/init.d/
  65. $(INSTALL_DIR) $(1)/sbin
  66. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin
  67. endef
  68. $(eval $(call BuildPackage,ltq-dsl-app))