cnss2: enable cnss2 for anorak target
- Add defconfigs for consoilidated and GKI variants. - Add anorak target to wlan bazel config. Change-Id: Ic5b4e156b6af63e5b46217fa9e917929c1521294 CRs-Fixed: 3792481
This commit is contained in:
parent
0500077d51
commit
8ac798203c
12
cnss2/anorak_consolidate_defconfig
Normal file
12
cnss2/anorak_consolidate_defconfig
Normal file
@ -0,0 +1,12 @@
|
||||
CONFIG_CNSS2=m
|
||||
CONFIG_CNSS_OUT_OF_TREE=y
|
||||
CONFIG_CNSS2_QMI=y
|
||||
CONFIG_CNSS_QMI_SVC=m
|
||||
CONFIG_BUS_AUTO_SUSPEND=y
|
||||
CONFIG_CNSS2_SSR_DRIVER_DUMP=y
|
||||
CONFIG_CNSS_HW_SECURE_DISABLE=y
|
||||
CONFIG_CNSS_HW_SECURE_SMEM=y
|
||||
CONFIG_CNSS2_SMMU_DB_SUPPORT=y
|
||||
CONFIG_CNSS_PLAT_IPC_QMI_SVC=m
|
||||
CONFIG_WCNSS_MEM_PRE_ALLOC=m
|
||||
CONFIG_CNSS2_DEBUG=y
|
11
cnss2/anorak_gki_defconfig
Normal file
11
cnss2/anorak_gki_defconfig
Normal file
@ -0,0 +1,11 @@
|
||||
CONFIG_CNSS2=m
|
||||
CONFIG_CNSS_OUT_OF_TREE=y
|
||||
CONFIG_CNSS2_QMI=y
|
||||
CONFIG_CNSS_QMI_SVC=m
|
||||
CONFIG_BUS_AUTO_SUSPEND=y
|
||||
CONFIG_CNSS2_SSR_DRIVER_DUMP=y
|
||||
CONFIG_CNSS_HW_SECURE_DISABLE=y
|
||||
CONFIG_CNSS_HW_SECURE_SMEM=y
|
||||
CONFIG_CNSS2_SMMU_DB_SUPPORT=y
|
||||
CONFIG_CNSS_PLAT_IPC_QMI_SVC=m
|
||||
CONFIG_WCNSS_MEM_PRE_ALLOC=m
|
2
cnss_genl/anorak_consolidate_defconfig
Normal file
2
cnss_genl/anorak_consolidate_defconfig
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_CNSS_GENL=m
|
||||
CONFIG_CNSS_OUT_OF_TREE=y
|
2
cnss_genl/anorak_gki_defconfig
Normal file
2
cnss_genl/anorak_gki_defconfig
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_CNSS_GENL=m
|
||||
CONFIG_CNSS_OUT_OF_TREE=y
|
2
cnss_prealloc/anorak_consolidate_defconfig
Normal file
2
cnss_prealloc/anorak_consolidate_defconfig
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_WCNSS_MEM_PRE_ALLOC=m
|
||||
CONFIG_CNSS_OUT_OF_TREE=y
|
2
cnss_prealloc/anorak_gki_defconfig
Normal file
2
cnss_prealloc/anorak_gki_defconfig
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_WCNSS_MEM_PRE_ALLOC=m
|
||||
CONFIG_CNSS_OUT_OF_TREE=y
|
4
cnss_utils/anorak_consolidate_defconfig
Normal file
4
cnss_utils/anorak_consolidate_defconfig
Normal file
@ -0,0 +1,4 @@
|
||||
CONFIG_CNSS_UTILS=m
|
||||
CONFIG_CNSS_QMI_SVC=m
|
||||
CONFIG_CNSS_PLAT_IPC_QMI_SVC=m
|
||||
CONFIG_CNSS_OUT_OF_TREE=y
|
4
cnss_utils/anorak_gki_defconfig
Normal file
4
cnss_utils/anorak_gki_defconfig
Normal file
@ -0,0 +1,4 @@
|
||||
CONFIG_CNSS_UTILS=m
|
||||
CONFIG_CNSS_QMI_SVC=m
|
||||
CONFIG_CNSS_PLAT_IPC_QMI_SVC=m
|
||||
CONFIG_CNSS_OUT_OF_TREE=y
|
@ -6,10 +6,10 @@ _default_module_enablement_list = [
|
||||
"cnss_nl",
|
||||
"cnss_prealloc",
|
||||
"cnss_utils",
|
||||
"wlan_firmware_service"
|
||||
"wlan_firmware_service",
|
||||
]
|
||||
|
||||
_cnss2_enabled_target = ["niobe", "pineapple", "sun"]
|
||||
_cnss2_enabled_target = ["anorak", "niobe", "pineapple", "sun"]
|
||||
_icnss2_enabled_target = ["blair", "pineapple", "monaco", "pitti", "volcano"]
|
||||
|
||||
def _get_module_list(target, variant):
|
||||
@ -77,6 +77,17 @@ def _define_modules_for_target_variant(target, variant):
|
||||
module = "cnss2"
|
||||
_define_platform_config_rule(module, target, variant)
|
||||
defconfig = ":{}/{}_defconfig_generate_{}".format(module, tv, variant)
|
||||
deps = [
|
||||
":{}_cnss_utils".format(tv),
|
||||
":{}_cnss_prealloc".format(tv),
|
||||
":{}_wlan_firmware_service".format(tv),
|
||||
":{}_cnss_plat_ipc_qmi_svc".format(tv),
|
||||
"//msm-kernel:all_headers",
|
||||
":wlan-platform-headers",
|
||||
]
|
||||
if target != "anorak":
|
||||
deps.append("//vendor/qcom/opensource/securemsm-kernel:{}_smcinvoke_dlkm".format(tv))
|
||||
|
||||
ddk_module(
|
||||
name = "{}_cnss2".format(tv),
|
||||
srcs = native.glob([
|
||||
@ -93,12 +104,12 @@ def _define_modules_for_target_variant(target, variant):
|
||||
includes = ["cnss", "cnss_utils"],
|
||||
kconfig = "cnss2/Kconfig",
|
||||
defconfig = defconfig,
|
||||
conditional_srcs = {
|
||||
conditional_srcs = {
|
||||
"CONFIG_CNSS2_QMI": {
|
||||
True: [
|
||||
"cnss2/qmi.c",
|
||||
"cnss2/coexistence_service_v01.c",
|
||||
]
|
||||
],
|
||||
},
|
||||
"CONFIG_PCI_MSM": {
|
||||
True: [
|
||||
@ -108,15 +119,7 @@ def _define_modules_for_target_variant(target, variant):
|
||||
},
|
||||
out = "cnss2.ko",
|
||||
kernel_build = "//msm-kernel:{}".format(tv),
|
||||
deps = [
|
||||
"//vendor/qcom/opensource/securemsm-kernel:{}_smcinvoke_dlkm".format(tv),
|
||||
":{}_cnss_utils".format(tv),
|
||||
":{}_cnss_prealloc".format(tv),
|
||||
":{}_wlan_firmware_service".format(tv),
|
||||
":{}_cnss_plat_ipc_qmi_svc".format(tv),
|
||||
"//msm-kernel:all_headers",
|
||||
":wlan-platform-headers",
|
||||
],
|
||||
deps = deps,
|
||||
)
|
||||
|
||||
if icnss2_enabled:
|
||||
@ -199,7 +202,7 @@ def _define_modules_for_target_variant(target, variant):
|
||||
name = "{}_cnss_utils".format(tv),
|
||||
srcs = native.glob([
|
||||
"cnss_utils/cnss_utils.c",
|
||||
"cnss_utils/*.h"
|
||||
"cnss_utils/*.h",
|
||||
]),
|
||||
kconfig = "cnss_utils/Kconfig",
|
||||
defconfig = defconfig,
|
||||
@ -219,7 +222,7 @@ def _define_modules_for_target_variant(target, variant):
|
||||
"cnss_utils/wlan_firmware_service_v01.c",
|
||||
"cnss_utils/device_management_service_v01.c",
|
||||
"cnss_utils/ip_multimedia_subsystem_private_service_v01.c",
|
||||
"cnss_utils/*.h"
|
||||
"cnss_utils/*.h",
|
||||
]),
|
||||
kconfig = "cnss_utils/Kconfig",
|
||||
defconfig = defconfig,
|
||||
@ -236,7 +239,7 @@ def _define_modules_for_target_variant(target, variant):
|
||||
srcs = native.glob([
|
||||
"cnss_utils/cnss_plat_ipc_qmi.c",
|
||||
"cnss_utils/cnss_plat_ipc_service_v01.c",
|
||||
"cnss_utils/*.h"
|
||||
"cnss_utils/*.h",
|
||||
]),
|
||||
kconfig = "cnss_utils/Kconfig",
|
||||
defconfig = defconfig,
|
||||
@ -253,7 +256,7 @@ def _define_modules_for_target_variant(target, variant):
|
||||
wipe_dist_dir = False,
|
||||
allow_duplicate_filenames = False,
|
||||
mode_overrides = {"**/*": "644"},
|
||||
log = "info"
|
||||
log = "info",
|
||||
)
|
||||
|
||||
def define_modules():
|
||||
|
Loading…
Reference in New Issue
Block a user