Revert "svn-1276"
[orinoco_usb.git] / drivers / net / wireless / Kbuild
blob86b7f9305fcf998c9b156027223f3f5906db105c
1 # This is the Makefile used by the Linux kernel build system
3 ifndef NOCHECK
5 ifneq ($(VERSION).$(PATCHLEVEL),2.6)
6 $(error Only Linux 2.6.x is supported)
7 endif
9 ifneq (,$(filter $(SUBLEVEL),0 1 2 3 4 5 6 7 8 9 10 11))
10 $(error This kernel is too old and not supported)
11 endif
13 ifneq (,$(filter $(SUBLEVEL),12 13))
14 $(warning This kernel is quite old - spectrum_cs will not be compiled)
15 NO_SPECTRUM_CS = 1
16 COMPAT_HEADERS = 1
17 endif
19 ifneq (,$(filter $(SUBLEVEL),14 15 16 17))
20 COMPAT_HEADERS = 1
21 endif
23 ifndef CONFIG_MODULES
24 $(error Module support is not enabled)
25 endif
27 ifndef CONFIG_NET_RADIO
28 $(error Wireless extensions are not enabled)
29 endif
31 ifeq ($(CONFIG_HERMES),y)
32 $(error This driver is already enabled in the kernel)
33 endif
35 endif
37 tmp-m := orinoco.o
38 tmp-y :=
40 tmp-$(CONFIG_USB) += orinoco_usb.o
42 ifdef COMPAT_HEADERS
43 EXTRA_CFLAGS += -include $(obj)/compat.h -I$(obj)
44 endif
46 # Force all objects to be modules
47 obj-m := $(tmp-y) $(tmp-m)