xref: /wlan-driver/platform/Kbuild (revision 5113495b16420b49004c444715d2daae2066e7dc)
1ifeq ($(CONFIG_CNSS_OUT_OF_TREE),y)
2KBUILD_CPPFLAGS += -DCONFIG_CNSS_OUT_OF_TREE
3endif
4
5ifeq ($(CONFIG_CNSS2_DEBUG),y)
6KBUILD_CPPFLAGS += -DCONFIG_CNSS2_DEBUG
7endif
8
9ifeq ($(CONFIG_CNSS2_QMI),y)
10KBUILD_CPPFLAGS += -DCONFIG_CNSS2_QMI
11endif
12
13ifeq ($(CONFIG_ONE_MSI_VECTOR),y)
14KBUILD_CPPFLAGS += -DCONFIG_ONE_MSI_VECTOR
15endif
16
17ifeq ($(CONFIG_ICNSS2_DEBUG),y)
18KBUILD_CPPFLAGS += -DCONFIG_ICNSS2_DEBUG
19endif
20
21ifeq ($(CONFIG_ICNSS2_QMI),y)
22KBUILD_CPPFLAGS += -DCONFIG_ICNSS2_QMI
23endif
24
25# CONFIG_WCNSS_MEM_PRE_ALLOC should never be "y" here since it
26# can be only compiled as a module from out-of-kernel-tree source.
27ifeq ($(CONFIG_WCNSS_MEM_PRE_ALLOC),m)
28KBUILD_CPPFLAGS += -DCONFIG_WCNSS_MEM_PRE_ALLOC
29endif
30
31# CONFIG_CNSS_PLAT_IPC_QMI_SVC should never be "y" here since it
32# can be only compiled as a module from out-of-kernel-tree source.
33ifeq ($(CONFIG_CNSS_PLAT_IPC_QMI_SVC),m)
34KBUILD_CPPFLAGS += -DCONFIG_CNSS_PLAT_IPC_QMI_SVC
35endif
36
37ifeq ($(CONFIG_CNSS_HW_SECURE_DISABLE), y)
38KBUILD_CPPFLAGS += -DCONFIG_CNSS_HW_SECURE_DISABLE
39endif
40
41ifeq ($(CONFIG_CNSS_HW_SECURE_SMEM), y)
42KBUILD_CPPFLAGS += -DCONFIG_CNSS_HW_SECURE_SMEM
43endif
44
45ifeq ($(CONFIG_CNSS2_CONDITIONAL_POWEROFF),y)
46KBUILD_CPPFLAGS += -DCONFIG_CNSS2_CONDITIONAL_POWEROFF
47endif
48
49ifeq ($(CONFIG_CNSS_REQ_FW_DIRECT),y)
50KBUILD_CPPFLAGS += -DCONFIG_CNSS_REQ_FW_DIRECT
51endif
52
53ifeq ($(CONFIG_CNSS_SUPPORT_DUAL_DEV),y)
54KBUILD_CPPFLAGS += -DCONFIG_CNSS_SUPPORT_DUAL_DEV
55endif
56
57ifeq ($(CONFIG_AUTO_PROJECT),y)
58KBUILD_CPPFLAGS += -DCONFIG_PULLDOWN_WLANEN
59endif
60
61ifeq ($(CONFIG_CNSS2_SSR_DRIVER_DUMP),y)
62KBUILD_CPPFLAGS += -DCONFIG_CNSS2_SSR_DRIVER_DUMP
63endif
64
65ifeq ($(CONFIG_FREE_M3_BLOB_MEM),y)
66KBUILD_CPPFLAGS += -DCONFIG_FREE_M3_BLOB_MEM
67endif
68
69ifeq ($(CONFIG_DISABLE_CNSS_SRAM_DUMP),y)
70KBUILD_CPPFLAGS += -DCONFIG_DISABLE_CNSS_SRAM_DUMP
71endif
72
73ifeq ($(CONFIG_CNSS2_SMMU_DB_SUPPORT),y)
74KBUILD_CPPFLAGS += -DCONFIG_CNSS2_SMMU_DB_SUPPORT
75endif
76
77ifeq ($(CONFIG_CNSS2_ENUM_WITH_LOW_SPEED),y)
78KBUILD_CPPFLAGS += -DCONFIG_CNSS2_ENUM_WITH_LOW_SPEED
79endif
80
81ifeq ($(CONFIG_SLATE_MODULE_ENABLED), y)
82KBUILD_CPPFLAGS += -DCONFIG_SLATE_MODULE_ENABLED
83endif
84
85ifeq ($(CONFIG_FEATURE_SMEM_MAILBOX), y)
86KBUILD_CPPFLAGS += -DCONFIG_FEATURE_SMEM_MAILBOX
87endif
88
89obj-$(CONFIG_CNSS2) += cnss2/
90obj-$(CONFIG_ICNSS2) += icnss2/
91obj-$(CONFIG_CNSS_GENL) += cnss_genl/
92obj-$(CONFIG_WCNSS_MEM_PRE_ALLOC) += cnss_prealloc/
93obj-y += cnss_utils/
94