[Asterisk-Dev] 2.6 Build directory

Sylvain Munaut tnt at 246tNt.com
Sat Jul 24 11:22:10 MST 2004


Hi

Why not taking directly the good directory from the Kbuild system ?


Sylvain Munaut


--- zaptel/Makefile        2004-02-10 11:54:57.965004088 +0100
+++ zaptel/Makefile    2004-02-10 11:56:19.186656520 +0100
@@ -69,8 +69,7 @@

 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
+   make -C /lib/modules/`uname -r`/build SUBDIRS=$(PWD) modules

 obj-m := $(MODULES0) ztdummy.o




More information about the asterisk-dev mailing list