diff options
author | John Crispin <john@openwrt.org> | 2011-07-17 19:26:35 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2011-07-17 19:26:35 +0000 |
commit | e80af9da6b46766cf31b7ba6972a4006cb8c29d7 (patch) | |
tree | 1c178542dc5d9db030c42b544427f0b50a4b555f | |
parent | 0de28706ca0d805f0a5b57494baba23a29ce5d27 (diff) | |
download | upstream-e80af9da6b46766cf31b7ba6972a4006cb8c29d7.tar.gz upstream-e80af9da6b46766cf31b7ba6972a4006cb8c29d7.tar.bz2 upstream-e80af9da6b46766cf31b7ba6972a4006cb8c29d7.zip |
reorganize ltq-dsl-app
Add menu options to ltq-dsl-app.
Signed-off-by: Luka Perkov <openwrt@lukaperkov.net>
SVN-Revision: 27661
-rw-r--r-- | package/ltq-dsl-app/Config.in | 14 | ||||
-rw-r--r-- | package/ltq-dsl-app/Makefile | 29 |
2 files changed, 35 insertions, 8 deletions
diff --git a/package/ltq-dsl-app/Config.in b/package/ltq-dsl-app/Config.in new file mode 100644 index 0000000000..5b8d609af1 --- /dev/null +++ b/package/ltq-dsl-app/Config.in @@ -0,0 +1,14 @@ +menu "Configuration" + depends on PACKAGE_ltq-dsl-app + +config LTQ_DSL_ENABLE_CLI + bool "Enable CLI support" + depends on PACKAGE_ltq-dsl-app + default n + +config LTQ_DSL_ENABLE_DSL_EVENT_POLLING + bool "Include Event Polling support" + depends on PACKAGE_ltq-dsl-app + default n + +endmenu diff --git a/package/ltq-dsl-app/Makefile b/package/ltq-dsl-app/Makefile index 1b1aa369c8..fb3e4ac644 100644 --- a/package/ltq-dsl-app/Makefile +++ b/package/ltq-dsl-app/Makefile @@ -16,6 +16,10 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION) PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/ PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161 +PKG_CONFIG_DEPENDS:=\ + CONFIG_LTQ_DSL_ENABLE_CLI \ + CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING + include $(INCLUDE_DIR)/package.mk define Package/ltq-dsl-app @@ -25,21 +29,25 @@ define Package/ltq-dsl-app URL:=http://www.lantiq.com/ DEPENDS:=@TARGET_lantiq_danube +kmod-ltq-dsl +libpthread MAINTAINER:=John Crispin <blogic@openwrt.org> + MENU:=1 endef define Package/ltq-dsl-app/description Infineon DSL CPE API for Amazon SE, Danube and Vinax. endef -IFX_DSL_MAX_DEVICE=1 -IFX_DSL_LINES_PER_DEVICE=1 -IFX_DSL_CHANNELS_PER_LINE=1 -#CONFIG_IFX_CLI=y +define Package/ltq-dsl-app/config + source "$(SOURCE)/Config.in" +endef + +LTQ_DSL_MAX_DEVICE=1 +LTQ_DSL_LINES_PER_DEVICE=1 +LTQ_DSL_CHANNELS_PER_LINE=1 CONFIGURE_ARGS += \ - --with-max-device="$(IFX_DSL_MAX_DEVICE)" \ - --with-lines-per-device="$(IFX_DSL_LINES_PER_DEVICE)" \ - --with-channels-per-line="$(IFX_DSL_CHANNELS_PER_LINE)" \ + --with-max-device="$(LTQ_DSL_MAX_DEVICE)" \ + --with-lines-per-device="$(LTQ_DSL_LINES_PER_DEVICE)" \ + --with-channels-per-line="$(LTQ_DSL_CHANNELS_PER_LINE)" \ --enable-danube \ --enable-driver-include="-I$(STAGING_DIR)/usr/include" \ --enable-debug-prints \ @@ -61,12 +69,17 @@ CONFIGURE_ARGS += \ --enable-dsl-pm-line-thresholds \ --enable-dsl-pm-optional-parameters -ifeq ($(CONFIG_IFX_CLI),y) +ifeq ($(CONFIG_LTQ_DSL_ENABLE_CLI),y) CONFIGURE_ARGS += \ --enable-cli-support \ --enable-soap-support endif +ifeq ($(CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING),y) +CONFIGURE_ARGS += \ + --enable-dsl-event-polling +endif + TARGET_CFLAGS += -I$(LINUX_DIR)/include define Package/ltq-dsl-app/install |