diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-15 13:36:10 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-15 13:36:10 +0000 |
commit | b9a5ae3beb08f7084896dac21b7b6d0a30203fba (patch) | |
tree | f5af3650ba775059aee899c85d5e757239a7bdc8 | |
parent | f7be83785bb52d8fa95e892e1878dd9bb046d319 (diff) |
* Allow setting the echo canceller from the Makefile or the environment
(needed for overriding the default EC in Debian m-a builds)
* Allow specifiying extra modules in the make command line:
MODULES_EXTRA.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2838 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | Makefile.kernel26 | 6 | ||||
-rw-r--r-- | zconfig.h | 5 |
3 files changed, 17 insertions, 1 deletions
@@ -61,6 +61,13 @@ MODULES:=zaptel tor2 torisa wcusb wcfxo wctdm \ ifeq ($(BUILDVER),linux26) MODULES+=ztdummy zttranscode endif + +# for building extra modules in this directory without editing the +# Makefiles: +# running: make MODULES_EXTRA=mod1 mod2 subdir1/ subdir2/" +# "subdir/" only works with kernel 2.6. +MODULES+=$(MODULES_EXTRA) + MODULE_ALIASES=wcfxs wctdm8xxp wct2xxp MODULESO:=$(MODULES:%=%.o) diff --git a/Makefile.kernel26 b/Makefile.kernel26 index b42ed06..b019a48 100644 --- a/Makefile.kernel26 +++ b/Makefile.kernel26 @@ -13,7 +13,13 @@ obj-m+=xpp/ endif endif +ifndef ECHO_CAN_NAME + ECHO_CAN_NAME := MG2 +endif +ECHO_CAN_CFLAGS := -DECHO_CAN_FROMENV -DECHO_CAN_$(ECHO_CAN_NAME) + EXTRA_CFLAGS := -I$(src) +EXTRA_CFLAGS += $(ECHO_CAN_CFLAGS) # fix typo present in CentOS and RHEL 2.6.9 kernels BAD_KERNELS_VERS := 22 34 34.0.1 34.0.2 @@ -44,6 +44,9 @@ */ /* #define CONFIG_ZAPTEL_MMX */ +/** If defined: the user must define exactly one ECHO_CAN_ var: */ +#ifndef ECHO_CAN_FROMENV + /* * Pick your echo canceller. * @@ -71,7 +74,7 @@ * MARK2 echo canceller */ /* #define AGGRESSIVE_SUPPRESSOR */ - +#endif /* ifndef ECHO_CAN_FROMENV */ /* * Define to turn off the echo canceler disable tone detector, * which will cause zaptel to ignore the 2100 Hz echo cancel disable |