From 72fdfec440a5951c13f397b2264f809c64135c9b Mon Sep 17 00:00:00 2001 From: Sherry Sun Date: Tue, 2 Mar 2021 14:36:03 +0800 Subject: [PATCH] mxm_wifiex: Makefile: fix Yocto build error when build mapp before kernel When build mapp before the kernel build, Yocto will meet below build error, since we don't need to build kernel modules in this repo for L5.4.70, so delete the default modules build here: Makefile:412: recipe for target 'default' failed make: *** [default] Error 2 Signed-off-by: Sherry Sun Reviewed-by: yang.tian --- mxm_wifiex/wlan_src/Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mxm_wifiex/wlan_src/Makefile b/mxm_wifiex/wlan_src/Makefile index c8980bf..a95f603 100644 --- a/mxm_wifiex/wlan_src/Makefile +++ b/mxm_wifiex/wlan_src/Makefile @@ -405,12 +405,6 @@ endif endif endif -# Otherwise we were called directly from the command line; invoke the kernel build system. -else - -default: - $(MAKE) -C $(KERNELDIR) M=$(PWD) modules - endif ############################################################### @@ -451,7 +445,7 @@ mapp/mlanevent: echo: -build: echo default +build: @if [ ! -d $(BINDIR) ]; then \ mkdir $(BINDIR); \