From 82481e5f166374586cedf4fe72573738fd4ef666 Mon Sep 17 00:00:00 2001 From: Fugang Duan Date: Tue, 11 Feb 2020 11:23:25 +0800 Subject: [PATCH] Makefile: use global toolchain --sysroot use global toolchina $CC that may have --sysroot variable. Signed-off-by: Fugang Duan --- mwifiex_8997/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mwifiex_8997/Makefile b/mwifiex_8997/Makefile index 2f2771e..6b32897 100755 --- a/mwifiex_8997/Makefile +++ b/mwifiex_8997/Makefile @@ -19,8 +19,12 @@ # this warranty disclaimer. COMPATDIR=/lib/modules/$(KERNELVERSION_X86)/build/compat-wireless-3.2-rc1-1/include +ifeq ($(CC),) CC= $(CROSS_COMPILE)gcc -I$(COMPATDIR) +endif +ifeq ($(LD),) LD= $(CROSS_COMPILE)ld +endif BACKUP= /root/backup YMD= `date +%Y%m%d%H%M`