[svn-commits] qwell: branch 1.4 r4515 - /branches/1.4/Makefile
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Sep 8 18:32:08 CDT 2008
Author: qwell
Date: Mon Sep 8 18:32:08 2008
New Revision: 4515
URL: http://svn.digium.com/view/zaptel?view=rev&rev=4515
Log:
Disable building some modules on kernels older than 2.6.8.
(closes issue #11523)
Reported by: tzafrir
Tested by: tzafrir, qwell
Initial patch by: kpfleming
Modified:
branches/1.4/Makefile
Modified: branches/1.4/Makefile
URL: http://svn.digium.com/view/zaptel/branches/1.4/Makefile?view=diff&rev=4515&r1=4514&r2=4515
==============================================================================
--- branches/1.4/Makefile (original)
+++ branches/1.4/Makefile Mon Sep 8 18:32:08 2008
@@ -42,6 +42,7 @@
endif
endif
KVERS_MAJ:=$(shell echo $(KVERS) | cut -d. -f1-2)
+KVERS_POINT:=$(shell echo $(KVERS) | cut -d. -f3 | cut -d- -f1)
KINCLUDES:=$(KSRC)/include
# We use the kernel's .config file as an indication that the KSRC
@@ -103,8 +104,16 @@
endif
ifeq ($(BUILDVER),linux24)
-MENUSELECT_MODULES+=xpp wctc4xxp wctdm24xxp zttranscode
-endif
+INCOMPAT_MODULES:=xpp wcte12xp wctc4xxp wctdm24xxp zttranscode
+endif
+
+ifeq ($(BUILDVER),linux26)
+ifneq ($(findstring $(KVERS_POINT),1 2 3 4 5 6 7 8),)
+INCOMPAT_MODULES:=wcte12xp wctc4xxp wctdm24xxp zttranscode
+endif
+endif
+
+MENUSELECT_MODULES+=$(sort $(INCOMPAT_MODULES))
ifeq ($(findstring xpp,$(MENUSELECT_MODULES)),)
BUILD_XPP:=yes
@@ -436,6 +445,17 @@
@echo "### make config"
@echo "###"
@echo "###################################################"
+ifneq ($(INCOMPAT_MODULES),)
+ @echo "***************************************************"
+ @echo "***"
+ @echo "*** WARNING:"
+ @echo "*** The following modules were not installed due to"
+ @echo "*** being incompatible with your $(KVERS) kernel."
+ @echo "***"
+ @echo "*** $(INCOMPAT_MODULES)"
+ @echo "***"
+ @echo "***************************************************"
+endif
install-programs: install-utils install-libs install-include
More information about the svn-commits
mailing list