mirror of
https://github.com/amazingfate/rtl8723ds.git
synced 2026-01-25 04:13:23 +00:00
Makefile: move 'EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)' at the end of EXTRA_FLAGS assignment
At the moment USER_EXTRA_CFLAGS can't override local Makfile EXTRA_CFLAGS since it's assigned at the beginning of the Makefile. For example it's not possible to undefine the hardcoded CONFIG_LITTLE_ENDIAN and this doesn't allow to build these modules for big endian architectures. So let's move the assignment of USER_EXTRA_CFLAGS to EXTRA_CFLAGS after the last EXTRA_CFLAGS assignment. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
This commit is contained in:
3
Makefile
3
Makefile
@@ -1,4 +1,3 @@
|
||||
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
|
||||
EXTRA_CFLAGS += -O1
|
||||
#EXTRA_CFLAGS += -O3
|
||||
#EXTRA_CFLAGS += -Wall
|
||||
@@ -1738,6 +1737,8 @@ ifneq ($(USER_MODULE_NAME),)
|
||||
MODULE_NAME := $(USER_MODULE_NAME)
|
||||
endif
|
||||
|
||||
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
|
||||
|
||||
ifneq ($(KERNELRELEASE),)
|
||||
|
||||
rtk_core := core/rtw_cmd.o \
|
||||
|
||||
Reference in New Issue
Block a user