always build against kerneldir if user specified it
PATCH 1/1 always build against kerneldir if user specified it
If the user specifies kerneldir, use it.
Without the patch:
muli@cluwyn:~/kvm/hg$ ./configure --qemu-cc=gcc-3.4 --kerneldir=/home/muli/iommu/calgary/obj.linux/ [snip] muli@cluwyn:~/kvm/hg$ make make -C kernel make[1]: Entering directory `/home/muli/kvm/hg/kernel' make -C /lib/modules/2.6.17-2-amd64/build M=`pwd` "$@" <=======
With the patch:
muli@cluwyn:~/kvm/hg$ ./configure --qemu-cc=gcc-3.4 --kerneldir=/home/muli/iommu/calgary/obj.linux/ [snip] muli@cluwyn:~/kvm/hg$ make make -C kernel make[1]: Entering directory `/home/muli/kvm/hg/kernel' make -C /home/muli/iommu/calgary/obj.linux M=`pwd` "$@" <======
To support building directly from kernel/, we don't complain if we can't find config.mak.
Signed-off-by Muli Ben-Yehuda <muli-7z/[email protected]>
kernel/Makefile +3 -1
@@ -1,4 +1,6 @@ KERNELDIR := /lib/modules/$(shell uname -KERNELDIR := /lib/modules/$(shell uname -r)/build +-include ../config.mak + +KERNELDIR ?= /lib/modules/$(shell uname -r)/build KVERREL = $(patsubst /lib/modules/%/build,%,$(KERNELDIR)) DESTDIR=
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642