aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlags49_h25/Makefile
diff options
context:
space:
mode:
authorHenk de Groot <henk.de.groot@hetnet.nl>2009-09-27 05:12:52 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-11 15:23:10 -0500
commit68c0bdff7ac903421f224e080499c51cd5287f97 (patch)
tree5f5f46e0a2d077c4d039a67d128a15a388dac91f /drivers/staging/wlags49_h25/Makefile
parent349f535cbd14308f1934d9b20c4c214cb49c9001 (diff)
Staging: wlags49_h2: add Agere driver for HERMES II and HERMES II.5 chipsets
WLAN driver for cards using the HERMES II and HERMES II.5 chipset Based on Agere Systems Linux LKM Wireless Driver Source Code, Version 7.22; complies with Open Source BSD License. The software is a modified version of wl_lkm_722_abg.tar.gz from the Agere Systems website, addapted for Ubuntu 9.04 and modified to fit in the current Linux kernel (2.6.31). Modified for kernel 2.6 by Henk de Groot <pe1dnn@amsat.org> Based on 7.18 version by Andrey Borzenkov <arvidjaar@mail.ru> $Revision: 39 $ Signed-off-by: Henk de Groot <pe1dnn@amsat.org> Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlags49_h25/Makefile')
-rw-r--r--drivers/staging/wlags49_h25/Makefile81
1 files changed, 81 insertions, 0 deletions
diff --git a/drivers/staging/wlags49_h25/Makefile b/drivers/staging/wlags49_h25/Makefile
new file mode 100644
index 00000000000..d0b23d4ff95
--- /dev/null
+++ b/drivers/staging/wlags49_h25/Makefile
@@ -0,0 +1,81 @@
1#
2# Makefile for wlags49_h2_cs.ko and wlags49_h25_cs.ko
3#
4# Default build for Hermes-II base cards (possibly identified with
5# "manfid: 0x0156, 0x0003" in "pccardctl ident" output), comment
6# -DHERMES25 below
7#
8# If you want to build for Hermes-II.5 base cards (possibly identified with
9# "manfid: 0x0156, 0x0004" in "pccardctl ident" output), uncomment
10# -DHERMES25 below
11#
12# If you want to build AP support (untested), comment out -DSTA_ONLY
13
14INSTALLDIR := /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless
15EXTRA_CFLAGS += -I$(KERNELDIR)/include
16EXTRA_CFLAGS += -I$(src) \
17 -DBUS_PCMCIA \
18 -DUSE_WPA \
19 -DUSE_WEXT \
20 -DSTA_ONLY \
21 -DWVLAN_49 \
22 -DHERMES25 \
23# -DDBG \
24# -DDBG_LVL=5 \
25# -DUSE_UIL \
26# -DUSE_PROFILE \
27
28ifeq ($(findstring HERMES25,$(EXTRA_CFLAGS)),)
29WLNAME := wlags49_h2_cs
30$(WLNAME)-y := sta_h2.o
31ifeq ($(findstring STA_ONLY,$(EXTRA_CFLAGS)),)
32$(WLNAME)-y += ap_h2.o
33endif
34else
35WLNAME=wlags49_h25_cs
36$(WLNAME)-y := sta_h25.o
37ifeq ($(findstring STA_ONLY,$(EXTRA_CFLAGS)),)
38$(WLNAME)-y += ap_h25.o
39endif
40endif
41
42# If KERNELRELEASE is defined, we've been invoked from the
43# kernel build system and can use its language.
44ifneq ($(KERNELRELEASE),)
45
46obj-m += $(WLNAME).o
47
48$(WLNAME)-y += wl_profile.o \
49 wl_wext.o \
50 wl_priv.o \
51 wl_main.o \
52 wl_enc.o \
53 wl_util.o \
54 wl_netdev.o \
55 wl_cs.o \
56 mmd.o \
57 hcf.o \
58 dhf.o
59
60$(WLNAME)-$(CONFIG_SYSFS) += wl_sysfs.o
61
62# Otherwise we were called directly from the command
63# line; invoke the kernel build system.
64else
65 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
66 PWD := $(shell pwd)
67
68default:
69 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
70endif
71
72clean:
73 rm -fr *.o *.ko *.mod.c *.mod.o .*.*.cmd Module.symvers \
74 Module.markers modules.order .tmp_versions
75
76install: default
77 -rmmod $(WLNAME)
78 install -d $(INSTALLDIR)
79 install -m 0644 -o root -g root $(WLNAME).ko $(INSTALLDIR)
80 /sbin/depmod -aq
81