Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Tracey Dent and committed by
Greg Kroah-Hartman
8138d416 9c36d724

+8 -8
+8 -8
drivers/staging/rtl8192u/ieee80211/Makefile
··· 5 5 6 6 CC = gcc 7 7 ifneq ($(shell uname -r|cut -d. -f1,2), 2.4) 8 - EXTRA_CFLAGS += -I$(TOPDIR)/drivers/net/wireless 9 - EXTRA_CFLAGS += -O2 10 - EXTRA_CFLAGS += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX 8 + ccflags-y := -I$(TOPDIR)/drivers/net/wireless 9 + ccflags-y += -O2 10 + ccflags-y += -DJACKSON_NEW_8187 -DJACKSON_NEW_RX 11 11 12 12 #it will fail to compile in suse linux enterprise 10 sp2. This flag is to solve this problem. 13 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 15 endif 16 16 17 17 ifeq ($(NIC_SELECT),RTL8192U) 18 - #EXTRA_CFLAGS += -DUSB_TX_DRIVER_AGGREGATION_ENABLE 19 - #EXTRA_CFLAGS += -DUSB_RX_AGGREGATION_SUPPORT 18 + #ccflags-y := -DUSB_TX_DRIVER_AGGREGATION_ENABLE 19 + #ccflags-y := -DUSB_RX_AGGREGATION_SUPPORT 20 20 endif 21 - #EXTRA_CFLAGS += -DJOHN_NOCPY 21 + #ccflags-y := -DJOHN_NOCPY 22 22 #flags to enable or disble 80211D feature 23 - EXTRA_CFLAGS += -DENABLE_DOT11D 23 + ccflags-y += -DENABLE_DOT11D 24 24 ieee80211-rsl-objs := ieee80211_rx.o \ 25 25 ieee80211_softmac.o \ 26 26 ieee80211_tx.o \