[zaptel-commits] tzafrir: branch 1.4 r3076 - /branches/1.4/Makefile.kernel26
SVN commits to the Zaptel project
zaptel-commits at lists.digium.com
Sat Sep 22 03:07:28 CDT 2007
Author: tzafrir
Date: Sat Sep 22 03:07:27 2007
New Revision: 3076
URL: http://svn.digium.com/view/zaptel?view=rev&rev=3076
Log:
Makefile Automatically enabling Zaptel MMX support. Disabled by default
for now.
* To enable, build with ZAPTEL_MMX_AUTO=yes (or any other non-empty
value)
* There is a white list of configuration values (without the prefix
CONFIG_). One of them needs to be set in order for CONFIG_ZAPTEL_MMX
to be enabled.
* Only adds support for kernel 2.6 . If anybody finds a simple way to do
the same with 2.4 - patches are welcomes.
Modified:
branches/1.4/Makefile.kernel26
Modified: branches/1.4/Makefile.kernel26
URL: http://svn.digium.com/view/zaptel/branches/1.4/Makefile.kernel26?view=diff&rev=3076&r1=3075&r2=3076
==============================================================================
--- branches/1.4/Makefile.kernel26 (original)
+++ branches/1.4/Makefile.kernel26 Sat Sep 22 03:07:27 2007
@@ -25,3 +25,24 @@
EXTRA_CFLAGS += -DECHO_CAN_HPEC -I$(src)/hpec
endif
+
+
+# set CONFIG_ZAPTEL_MMX for a number of CPU types.
+# Right now this part is not enabled, unless you build with
+# ZAPTEL_MMX_AUTO=something .
+ZAPMMX_WHITELIST_i386 = M586MMX M686 MPENTIUMII MPENTIUMIII MPENTIUMM \
+ MPENTIUM4 MVIAC3_2
+
+ZAPMMX_WHITELIST_x86_64 =
+
+# A list of configuration variables to test: CONFIG_M686 , etc.
+ZAPMMX_CONFIG_VARS := $(ZAPMMX_WHITELIST_$(ARCH):%=CONFIG_%)
+
+# expand them:
+ZAPMMX_CONFIG_VALS := $(strip $(foreach var,$(ZAPMMX_CONFIG_VARS),$(var)) )
+ifneq (,$(ZAPTEL_MMX_AUTO))
+ ifneq (,$(ZAPMMX_CONFIG_VALS))
+ # TODO: make that
+ CFLAGS_zaptel-base.o += -DCONFIG_ZAPTEL_MMX
+ endif
+endif
More information about the zaptel-commits
mailing list