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