diff options
author | qwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-09-08 23:32:08 +0000 |
---|---|---|
committer | qwell <qwell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-09-08 23:32:08 +0000 |
commit | 9e83be81c83605c31cdc4fab0473075b15745d4e (patch) | |
tree | c9655914fd34da5c5fc822ffc842384d8ccfebb7 | |
parent | 24c0f390f907783b15e529e52723f09d4d930064 (diff) |
Disable building some modules on kernels 2.6.8 and older.
(closes issue #11523)
Reported by: tzafrir
Tested by: tzafrir, qwell
Initial patch by: kpfleming
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4515 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r-- | Makefile | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -42,6 +42,7 @@ ifndef KSRC 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,9 +104,17 @@ ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var endif ifeq ($(BUILDVER),linux24) -MENUSELECT_MODULES+=xpp wctc4xxp wctdm24xxp zttranscode +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 endif @@ -436,6 +445,17 @@ install: all devices install-modules install-programs install-firmware @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 |