]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drivers: staging: rtl8188eu: use 'ccflags-y' instead of EXTRA_CFLAGS in Makefile
authorChen Gang <gang.chen@asianux.com>
Thu, 24 Oct 2013 01:55:17 +0000 (09:55 +0800)
committerJiri Slaby <jslaby@suse.cz>
Tue, 9 Jun 2015 10:13:58 +0000 (12:13 +0200)
commit 97b0b6ca4c0f0f964d3c6918301ca45353ef8bc5 upstream.

If command line use EXTRA_CFLAGS (e.g. "EXTRA_CFLAGS=-mmedium-calls"
for arc architecture, with allmodconfig), it can not pass compiling,
the related error:

  drivers/staging/rtl8188eu/core/rtw_ap.c:22:27: fatal error: osdep_service.h: No such file or directory

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/staging/rtl8188eu/Makefile

index 1639a45da948252b3c756b7d28cbe70b185a9f5e..d1173ab92bea75a350943cbd84b32bfe92f222d1 100644 (file)
@@ -1,5 +1,3 @@
-EXTRA_CFLAGS += -I$(src)/include
-
 r8188eu-y :=                           \
                core/rtw_ap.o           \
                core/rtw_br_ext.o       \
@@ -67,4 +65,4 @@ r8188eu-y :=                          \
 
 obj-$(CONFIG_R8188EU)  := r8188eu.o
 
-ccflags-y += -D__CHECK_ENDIAN__
+ccflags-y += -D__CHECK_ENDIAN__ -I$(src)/include