Added mac80211_hwsim - software simulator of 802.11 radio(s) for mac80211
[wpasupplicant] / mac80211_hwsim / Makefile
diff --git a/mac80211_hwsim/Makefile b/mac80211_hwsim/Makefile
new file mode 100644 (file)
index 0000000..1728ad6
--- /dev/null
@@ -0,0 +1,12 @@
+# Determine path to the root directory of the Linux kernel source for the
+# currently running kernel. Version can be hardcoded with environment variable:
+# KVERS=2.6.25-foo make
+# Kernel path can be overrided with KERNEL_PATH argument to make:
+# make KERNEL_PATH=/usr/src/linux
+KVERS ?= $(shell uname -r)
+KERNEL_PATH ?= /lib/modules/$(KVERS)/build
+
+hwsim:
+       $(MAKE) -C $(KERNEL_PATH) SUBDIRS=$(PWD) modules
+
+obj-m += mac80211_hwsim.o