qcom: wlan: platform: Add defconfig to Kbuild

Change-Id: I330c0d08542101ed2731b5cc744a2a98e90f93d7
This commit is contained in:
dianlujitao
2025-01-15 18:31:57 +08:00
committed by chandu078
parent b27da28f11
commit b6131a4e08
6 changed files with 14 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
include \
$(WLAN_PLATFORM_ROOT)/cnss2/sun_gki_defconfig \
$(WLAN_PLATFORM_ROOT)/cnss_genl/sun_gki_defconfig \
$(WLAN_PLATFORM_ROOT)/cnss_prealloc/sun_gki_defconfig \
$(WLAN_PLATFORM_ROOT)/cnss_utils/sun_gki_defconfig
ifeq ($(CONFIG_CNSS_OUT_OF_TREE),y)
KBUILD_CPPFLAGS += -DCONFIG_CNSS_OUT_OF_TREE
endif

View File

@@ -5,6 +5,8 @@ M ?= $(shell pwd)
ifeq ($(WLAN_PLATFORM_ROOT),)
WLAN_PLATFORM_ROOT = $(shell pwd)
USE_EXTERNAL_CONFIGS := y
# If it reaches here, compilation is probably without Android.mk,
# so enable all flags (including debug flag CONFIG_CNSS2_DEBUG) by
# default.

View File

@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
include $(WLAN_PLATFORM_ROOT)/cnss2/sun_gki_defconfig
ccflags-y += -Wmissing-prototypes
ifeq ($(CONFIG_CNSS_OUT_OF_TREE),y)

View File

@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
include $(WLAN_PLATFORM_ROOT)/cnss_genl/sun_gki_defconfig
ccflags-y += -Wmissing-prototypes
ifeq ($(CONFIG_CNSS_OUT_OF_TREE),y)

View File

@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0-only
include $(WLAN_PLATFORM_ROOT)/cnss_prealloc/sun_gki_defconfig
ccflags-y += -Wmissing-prototypes
ifeq ($(CONFIG_CNSS_OUT_OF_TREE),y)

View File

@@ -1,10 +1,12 @@
# SPDX-License-Identifier: GPL-2.0-only
include $(WLAN_PLATFORM_ROOT)/cnss_utils/sun_gki_defconfig
ccflags-y += -Wmissing-prototypes
ifeq ($(CONFIG_CNSS_OUT_OF_TREE),y)
ccflags-y += -I$(WLAN_PLATFORM_ROOT)/inc
endif
ccflags-$(CONFIG_FEATURE_SMEM_MAILBOX) += -DCONFIG_FEATURE_SMEM_MAILBOX
obj-$(CONFIG_CNSS_UTILS) += cnss_utils.o