Support kernel PIC mode for compiling + fixed kernel v5.3 warnings

This commit is contained in:
kimocoder 2019-11-11 02:26:08 +01:00
parent ce9a4551ce
commit 2293742a84

View File

@ -1,4 +1,4 @@
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) -fno-pie
EXTRA_CFLAGS += -O1 EXTRA_CFLAGS += -O1
#EXTRA_CFLAGS += -O3 #EXTRA_CFLAGS += -O3
#EXTRA_CFLAGS += -Wall #EXTRA_CFLAGS += -Wall
@ -17,6 +17,7 @@ EXTRA_CFLAGS += -Wno-uninitialized
EXTRA_CFLAGS += -Wno-cast-function-type EXTRA_CFLAGS += -Wno-cast-function-type
EXTRA_CFLAGS += -Wno-misleading-indentation EXTRA_CFLAGS += -Wno-misleading-indentation
EXTRA_CFLAGS += -Wno-missing-field-initializers EXTRA_CFLAGS += -Wno-missing-field-initializers
EXTRA_CFLAGS += -Wimplicit-fallthrough=0
EXTRA_CFLAGS += -Wno-vla -g EXTRA_CFLAGS += -Wno-vla -g
#EXTRA_CFLAGS += -Wno-tautological-compare #EXTRA_CFLAGS += -Wno-tautological-compare
#EXTRA_CFLAGS += -Wno-incompatible-pointer-types #EXTRA_CFLAGS += -Wno-incompatible-pointer-types