From b15f3ce9fe8aadda108b6b4a78cfee952629bc3e Mon Sep 17 00:00:00 2001 From: Nijun Gong Date: Thu, 15 Dec 2022 20:59:41 +0800 Subject: [PATCH] cnss2: Use external configurations Add option to select configurations from other places such as yocto recipe. Change-Id: I9ce971f3548d65630642f0b467515090f10f1480 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index d97d1a009c..a3163e4e9c 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ WLAN_PLATFORM_ROOT = $(shell pwd) # so enable all flags (including debug flag CONFIG_CNSS2_DEBUG) by # default. KBUILD_OPTIONS := WLAN_PLATFORM_ROOT=$(WLAN_PLATFORM_ROOT) +ifeq ($(USE_EXTERNAL_CONFIGS),) KBUILD_OPTIONS += CONFIG_CNSS_OUT_OF_TREE=y KBUILD_OPTIONS += CONFIG_CNSS2=m KBUILD_OPTIONS += CONFIG_ICNSS2=m @@ -22,6 +23,7 @@ KBUILD_OPTIONS += CONFIG_CNSS_GENL=m KBUILD_OPTIONS += CONFIG_WCNSS_MEM_PRE_ALLOC=m KBUILD_OPTIONS += CONFIG_CNSS_UTILS=m endif +endif all: $(MAKE) -C $(KERNEL_SRC) M=$(M) modules $(KBUILD_OPTIONS)