diff options
author | Tracey Dent <tdent48227@gmail.com> | 2010-10-02 12:38:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-05 14:56:38 -0400 |
commit | 8138d41632a551a65fd02f9c883e4e37f63d596f (patch) | |
tree | 9c32962b244beac31059d782d69da737e37c226f | |
parent | 9c36d724c1fc36200d4a79e2159e0bc4c4740c36 (diff) |
Staging: rtl8192u: ieee80211: Makefile: cleaned up Makefile cflag lines
Changed to use the proper ccflags-y option
Signed-off-by: Tracey Dent <tdent48227@gmail.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/Makefile b/drivers/staging/rtl8192u/ieee80211/Makefile index 71ca5d93a1b7..45704f85ef0b 100644 --- a/drivers/staging/rtl8192u/ieee80211/Makefile +++ b/drivers/staging/rtl8192u/ieee80211/Makefile | |||
@@ -5,22 +5,22 @@ MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/$(NIC_SELECT) | |||
5 | 5 | ||
6 | CC = gcc | 6 | CC = gcc |
7 | ifneq ($(shell uname -r|cut -d. -f1,2), 2.4) | 7 | ifneq ($(shell uname -r|cut -d. -f1,2), 2.4) |
8 | EXTRA_CFLAGS += -I$(TOPDIR)/drivers/net/wireless | 8 | ccflags-y := -I$(TOPDIR)/drivers/net/wireless |
9 | EXTRA_CFLAGS += -O2 | 9 | ccflags-y += -O2 |
10 | EXTRA_CFLAGS += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX | 10 | ccflags-y += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX |
11 | 11 | ||
12 | #it will fail to compile in suse linux enterprise 10 sp2. This flag is to solve this problem. | 12 | #it will fail to compile in suse linux enterprise 10 sp2. This flag is to solve this problem. |
13 | ifeq ($(shell uname -r | cut -d. -f1,2,3,4), 2.6.16.60-0) | 13 | ifeq ($(shell uname -r | cut -d. -f1,2,3,4), 2.6.16.60-0) |
14 | EXTRA_CFLAGS += -DOPENSUSE_SLED | 14 | ccflags-y := -DOPENSUSE_SLED |
15 | endif | 15 | endif |
16 | 16 | ||
17 | ifeq ($(NIC_SELECT),RTL8192U) | 17 | ifeq ($(NIC_SELECT),RTL8192U) |
18 | #EXTRA_CFLAGS += -DUSB_TX_DRIVER_AGGREGATION_ENABLE | 18 | #ccflags-y := -DUSB_TX_DRIVER_AGGREGATION_ENABLE |
19 | #EXTRA_CFLAGS += -DUSB_RX_AGGREGATION_SUPPORT | 19 | #ccflags-y := -DUSB_RX_AGGREGATION_SUPPORT |
20 | endif | 20 | endif |
21 | #EXTRA_CFLAGS += -DJOHN_NOCPY | 21 | #ccflags-y := -DJOHN_NOCPY |
22 | #flags to enable or disble 80211D feature | 22 | #flags to enable or disble 80211D feature |
23 | EXTRA_CFLAGS += -DENABLE_DOT11D | 23 | ccflags-y += -DENABLE_DOT11D |
24 | ieee80211-rsl-objs := ieee80211_rx.o \ | 24 | ieee80211-rsl-objs := ieee80211_rx.o \ |
25 | ieee80211_softmac.o \ | 25 | ieee80211_softmac.o \ |
26 | ieee80211_tx.o \ | 26 | ieee80211_tx.o \ |