mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2025-02-03 22:15:17 +08:00
Some fixes to Makefile
* Build on all available cores * Check for available GCC 4.9 on "EXTRA_CFLAGS += -Wno-date-time"
This commit is contained in:
parent
99ac4d5c98
commit
5f3e21c5de
10
Makefile
10
Makefile
@ -15,8 +15,12 @@ EXTRA_CFLAGS += -Wno-unused-function
|
|||||||
EXTRA_CFLAGS += -Wno-unused
|
EXTRA_CFLAGS += -Wno-unused
|
||||||
EXTRA_CFLAGS += -Wno-date-time
|
EXTRA_CFLAGS += -Wno-date-time
|
||||||
EXTRA_CFLAGS += -Wno-misleading-indentation
|
EXTRA_CFLAGS += -Wno-misleading-indentation
|
||||||
EXTRA_CFLAGS += -Wno-uninitialized
|
#EXTRA_CFLAGS += -Wno-uninitialized
|
||||||
EXTRA_CFLAGS += -Wno-error=date-time # Fix compile error on gcc 4.9 and later
|
|
||||||
|
GCC_VER_49 := $(shell echo `$(CC) -dumpversion | cut -f1-2 -d.` \>= 4.9 | bc )
|
||||||
|
ifeq ($(GCC_VER_49),1)
|
||||||
|
EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and later
|
||||||
|
endif
|
||||||
|
|
||||||
EXTRA_CFLAGS += -I$(src)/include
|
EXTRA_CFLAGS += -I$(src)/include
|
||||||
EXTRA_CFLAGS += -I$(src)/hal/phydm
|
EXTRA_CFLAGS += -I$(src)/hal/phydm
|
||||||
@ -1866,7 +1870,7 @@ export CONFIG_RTL8812AU = m
|
|||||||
all: modules
|
all: modules
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules
|
$(MAKE) -j $(shell nproc || echo 1) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules
|
||||||
|
|
||||||
strip:
|
strip:
|
||||||
$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded
|
$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded
|
||||||
|
Loading…
x
Reference in New Issue
Block a user