reorganize ltq-dsl-app

Add menu options to ltq-dsl-app.

Signed-off-by: Luka Perkov <openwrt@lukaperkov.net>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27661 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
John Crispin 2011-07-17 19:26:35 +00:00
parent e2bee03425
commit 094caf5fca
2 changed files with 35 additions and 8 deletions

View File

@ -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

View File

@ -16,6 +16,10 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION)
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/ PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161 PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161
PKG_CONFIG_DEPENDS:=\
CONFIG_LTQ_DSL_ENABLE_CLI \
CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/ltq-dsl-app define Package/ltq-dsl-app
@ -25,21 +29,25 @@ define Package/ltq-dsl-app
URL:=http://www.lantiq.com/ URL:=http://www.lantiq.com/
DEPENDS:=@TARGET_lantiq_danube +kmod-ltq-dsl +libpthread DEPENDS:=@TARGET_lantiq_danube +kmod-ltq-dsl +libpthread
MAINTAINER:=John Crispin <blogic@openwrt.org> MAINTAINER:=John Crispin <blogic@openwrt.org>
MENU:=1
endef endef
define Package/ltq-dsl-app/description define Package/ltq-dsl-app/description
Infineon DSL CPE API for Amazon SE, Danube and Vinax. Infineon DSL CPE API for Amazon SE, Danube and Vinax.
endef endef
IFX_DSL_MAX_DEVICE=1 define Package/ltq-dsl-app/config
IFX_DSL_LINES_PER_DEVICE=1 source "$(SOURCE)/Config.in"
IFX_DSL_CHANNELS_PER_LINE=1 endef
#CONFIG_IFX_CLI=y
LTQ_DSL_MAX_DEVICE=1
LTQ_DSL_LINES_PER_DEVICE=1
LTQ_DSL_CHANNELS_PER_LINE=1
CONFIGURE_ARGS += \ CONFIGURE_ARGS += \
--with-max-device="$(IFX_DSL_MAX_DEVICE)" \ --with-max-device="$(LTQ_DSL_MAX_DEVICE)" \
--with-lines-per-device="$(IFX_DSL_LINES_PER_DEVICE)" \ --with-lines-per-device="$(LTQ_DSL_LINES_PER_DEVICE)" \
--with-channels-per-line="$(IFX_DSL_CHANNELS_PER_LINE)" \ --with-channels-per-line="$(LTQ_DSL_CHANNELS_PER_LINE)" \
--enable-danube \ --enable-danube \
--enable-driver-include="-I$(STAGING_DIR)/usr/include" \ --enable-driver-include="-I$(STAGING_DIR)/usr/include" \
--enable-debug-prints \ --enable-debug-prints \
@ -61,12 +69,17 @@ CONFIGURE_ARGS += \
--enable-dsl-pm-line-thresholds \ --enable-dsl-pm-line-thresholds \
--enable-dsl-pm-optional-parameters --enable-dsl-pm-optional-parameters
ifeq ($(CONFIG_IFX_CLI),y) ifeq ($(CONFIG_LTQ_DSL_ENABLE_CLI),y)
CONFIGURE_ARGS += \ CONFIGURE_ARGS += \
--enable-cli-support \ --enable-cli-support \
--enable-soap-support --enable-soap-support
endif endif
ifeq ($(CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING),y)
CONFIGURE_ARGS += \
--enable-dsl-event-polling
endif
TARGET_CFLAGS += -I$(LINUX_DIR)/include TARGET_CFLAGS += -I$(LINUX_DIR)/include
define Package/ltq-dsl-app/install define Package/ltq-dsl-app/install