summaryrefslogtreecommitdiff
path: root/package/ifxmips-dsl-api/Makefile
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2010-03-18 13:02:29 +0000
committerJohn Crispin <john@openwrt.org>2010-03-18 13:02:29 +0000
commit4fcee4628c22097de0062d6d84bf28dd04e57a9c (patch)
treed80acdd9eb20fa63d68b750f222dc4cb1ac46ee9 /package/ifxmips-dsl-api/Makefile
parentd47b3b56e65ba91eff6bdcee1e716d0ceb62ca02 (diff)
downloadmtk-20170518-4fcee4628c22097de0062d6d84bf28dd04e57a9c.zip
mtk-20170518-4fcee4628c22097de0062d6d84bf28dd04e57a9c.tar.gz
mtk-20170518-4fcee4628c22097de0062d6d84bf28dd04e57a9c.tar.bz2
Add option to disable debug output of DSL drivers signed of by Ithamar R. Adema
SVN-Revision: 20270
Diffstat (limited to 'package/ifxmips-dsl-api/Makefile')
-rw-r--r--package/ifxmips-dsl-api/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/ifxmips-dsl-api/Makefile b/package/ifxmips-dsl-api/Makefile
index 992c241..fdb0721 100644
--- a/package/ifxmips-dsl-api/Makefile
+++ b/package/ifxmips-dsl-api/Makefile
@@ -81,8 +81,6 @@ CONFIGURE_ARGS += --enable-kernel-include="$(LINUX_DIR)/include" \
--with-channels-per-line="$(IFX_DSL_CHANNELS_PER_LINE)" \
--enable-danube \
--enable-add-drv-cflags="-DMODULE" \
- --enable-debug=yes \
- --enable-debug-prints=yes \
--disable-dsl-delt-static \
--disable-adsl-led \
--enable-dsl-ceoc \
@@ -103,6 +101,13 @@ CONFIGURE_ARGS += --enable-kernel-include="$(LINUX_DIR)/include" \
EXTRA_CFLAGS = -fno-pic -mno-abicalls -mlong-calls -G 0
+ifeq ($(CONFIG_IFXMIPS_DSL_DEBUG),y)
+CONFIGURE_ARGS += \
+ --enable-debug=yes \
+ --enable-debug-prints=yes
+EXTRA_CFLAGS += -DDEBUG
+endif
+
define Build/Prepare
$(PKG_UNPACK)
$(INSTALL_DIR) $(PKG_BUILD_DIR)/src/mei/