[zaptel-commits] tzafrir: branch 1.4 r4193 - /branches/1.4/kernel/xpp/Kbuild
SVN commits to the Zaptel project
zaptel-commits at lists.digium.com
Wed Apr 23 14:20:54 CDT 2008
Author: tzafrir
Date: Wed Apr 23 14:20:53 2008
New Revision: 4193
URL: http://svn.digium.com/view/zaptel?view=rev&rev=4193
Log:
A test for a specific #define in zconfig.h was done by invoking cpp .
Sadly the change of CFLAGS handling in kernel 2.6.24 meant that it is no
longer as easy to invoke cpp on our own.
Impact: On kernel >= 2.6.24, xpd_bri never got built, even if the
bri_dchan patch was applied.
Fix: use a simpler grep instead. Hopefully noone passes it through other
means. This should hopfully fix issue #12426 .
Modified:
branches/1.4/kernel/xpp/Kbuild
Modified: branches/1.4/kernel/xpp/Kbuild
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/xpp/Kbuild?view=diff&rev=4193&r1=4192&r2=4193
==============================================================================
--- branches/1.4/kernel/xpp/Kbuild (original)
+++ branches/1.4/kernel/xpp/Kbuild Wed Apr 23 14:20:53 2008
@@ -20,7 +20,7 @@
obj-m += xpp.o xpd_fxs.o xpd_fxo.o xpd_pri.o
-HAS_BRISTUFF := $(shell cpp $(CPPFLAGS) -dM $(ZAP_KERNEL)/zconfig.h | sed -n 's/^.*CONFIG_ZAPATA_BRI_DCHANS/y/p')
+HAS_BRISTUFF := $(shell grep '^[[:space:]]*\#[[:space:]]*define[[:space:]]\+CONFIG_ZAPATA_BRI_DCHANS\>' $(ZAP_KERNEL)/zconfig.h)
# Build only supported modules
ifneq (,$(filter y m,$(CONFIG_USB)))
More information about the zaptel-commits
mailing list