From 3d7433f3c5592585bcd18881ee49f7d83f43fe89 Mon Sep 17 00:00:00 2001 From: tzafrir Date: Mon, 4 Aug 2008 15:38:10 +0000 Subject: Kbuild: A more robust check for the bri_dchan patch. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4453 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- xpp/Kbuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpp/Kbuild b/xpp/Kbuild index f7f180b..3be5c71 100644 --- a/xpp/Kbuild +++ b/xpp/Kbuild @@ -20,13 +20,13 @@ endif obj-m += xpp.o xpd_fxs.o xpd_fxo.o xpd_pri.o -HAS_BRISTUFF := $(shell grep '^[[:space:]]*\#[[:space:]]*define[[:space:]]\+CONFIG_ZAPATA_BRI_DCHANS\>' $(ZAP_KERNEL)/zconfig.h) +HAS_BRISTUFF := $(shell grep -c '^[[:space:]]*\#[[:space:]]*define[[:space:]]\+CONFIG_ZAPATA_BRI_DCHANS\>' $(ZAP_KERNEL)/zconfig.h) # Build only supported modules ifneq (,$(filter y m,$(CONFIG_USB))) obj-m += xpp_usb.o endif -ifneq (,$(HAS_BRISTUFF)) +ifneq (0,$(HAS_BRISTUFF)) obj-m += xpd_bri.o endif -- cgit v1.2.3