• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

external/kernel-drivers


Commit MetaInfo

修订版e168c53bfab9bb20103b10773c66fd79ce28b631 (tree)
时间2020-05-12 20:55:22
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Fix compile errors with clang

Define the flag -Wno-date-time as gcc 4.9+.

更改概述

差异

--- a/rtl8812au/Makefile
+++ b/rtl8812au/Makefile
@@ -15,7 +15,7 @@ EXTRA_CFLAGS += -Wno-unused-function
1515 EXTRA_CFLAGS += -Wno-unused
1616 #EXTRA_CFLAGS += -Wno-uninitialized
1717
18-GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
18+GCC_VER_49 := $(if $(CONFIG_CC_IS_CLANG),1,$(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc ))
1919 ifeq ($(GCC_VER_49),1)
2020 EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and later
2121 endif
--- a/rtl8821ce/Makefile
+++ b/rtl8821ce/Makefile
@@ -16,7 +16,7 @@ EXTRA_CFLAGS += -Wno-unused-function
1616 EXTRA_CFLAGS += -Wno-unused
1717 #EXTRA_CFLAGS += -Wno-uninitialized
1818
19-GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
19+GCC_VER_49 := $(if $(CONFIG_CC_IS_CLANG),1,$(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc ))
2020 ifeq ($(GCC_VER_49),1)
2121 EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and later
2222 endif
--- a/wl/wl.patch
+++ b/wl/wl.patch
@@ -1,5 +1,14 @@
11 --- a/Makefile
22 +++ b/Makefile
3+@@ -115,7 +115,7 @@
4+ GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
5+ # Crop the version number to 3 decimals.
6+ GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3)
7+-GE_49 := $(shell expr `echo $(GCCVERSION)` \>= 490)
8++GE_49 := $(if $(CONFIG_CC_IS_CLANG),1,$(shell expr `echo $(GCCVERSION)` \>= 490))
9+
10+ EXTRA_CFLAGS :=
11+
312 @@ -145,7 +145,7 @@
413 EXTRA_CFLAGS += -Wno-date-time
514 endif