[Asterisk-Users] Asterisk/linux 2.6.9 kernel build failure
Dave Cotton
dcotton at linuxautrement.com
Sun Nov 28 10:40:45 MST 2004
On Sun, 2004-11-28 at 08:29 -0800, Steven P. Donegan wrote:
> Has anyone successfully built Asterisk with linux 2.6.9 kernel?
Yes.
> It fails
> in my zaptel build trying to find a Makefile in the
> /lib/modules/2.6.9/build directory - thanks.
Someone posted a patch for the zaptel Makefile and it works fine.
I've included a copy, I sorry I don't know who created it.
Makefile.patch
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
--- zaptel/Makefile.orig 2004-10-14 10:24:35.497280408 -0400
+++ zaptel/Makefile 2004-10-14 11:02:09.561772322 -0400
@@ -65,6 +65,7 @@
PRIMARY=torisa
#PRIMARY=wcfxo
PWD=$(shell pwd)
+KVER := $(shell uname -r)
all: $(BUILDVER)
@@ -72,8 +73,8 @@
linux26:
linux26: prereq $(BINS)
- @if ! [ -d /usr/src/linux-2.6 ]; then echo
"Link /usr/src/linux-2.6 to your kernel sources first!"; exit 1 ; fi
- make -C /usr/src/linux-2.6 SUBDIRS=$(PWD) modules
+ @if ! [ -d /lib/modules/$(KVER)/build ]; then echo "Make sure
that you have your kernel build environment
at /lib/modules/$(KVER)/build"; exit 1 ; fi
+ make -C /lib/modules/$(KVER)/build SUBDIRS=$(PWD) modules
obj-m := $(MODULESO) ztdummy.o
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
--
Dave Cotton <dcotton at linuxautrement.com>
More information about the asterisk-users
mailing list