patch for hostap-driver Makefile

Jim Cromie jcromie
Mon Jan 31 19:31:23 PST 2005


this patch works-for-me,
its based upon whats done in ndiswrapper,
I think its the modern way of doing things now.

It will still work the old way if you do this..
KERNEL_PATH=/usr/src/linux make

More elaborate schemes are possible,
like perhaps checking -d /usr/src/linux
but /lib/modules/`uname -r`/ would always pass that test,
and I cant think of a better default


[jimc at harpo hostap-driver-0.3.5]$ more patch.make
--- Makefile    2004-05-23 18:48:05.000000000 -0600
+++ Makefile.new        2005-01-25 14:12:18.000000000 -0700
@@ -1,6 +1,7 @@
-# Edit this path to match with your system (it should point to the root
-# directory of the Linux kernel source)
-KERNEL_PATH=/usr/src/linux
+
+# change via env: KVERS=2.6.10-foo make
+KVERS ?= $(shell uname -r)
+KERNEL_PATH ?= /lib/modules/$(KVERS)/build

# Systems using external pcmcia-cs package (instead of kernel-tree pcmcia
# modules):
[jimc at harpo hostap-driver-0.3.5]$









More information about the Hostap mailing list