msm: camera: enable TFE compilation on Lanai

Enable bezel tfe compilation on Lanai target and fixed
compilation.

CRs-Fixed: 3671077
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
Change-Id: Ibaa618498a05f16f9544e6fcaa6ceecd6549271c
This commit is contained in:
Alok Chauhan
2023-11-14 16:10:31 +05:30
vanhempi df1fca554b
commit bdcbaa0573
7 muutettua tiedostoa jossa 38 lisäystä ja 19 poistoa

Näytä tiedosto

@@ -1,5 +1,6 @@
load("//build/kernel/kleaf:kernel.bzl", "ddk_module")
load("//build/bazel_common_rules/dist:dist.bzl", "copy_to_dist_dir")
load("//msm-kernel:target_variants.bzl", "get_all_variants")
def _define_module(target, variant):
tv = "{}_{}".format(target, variant)
@@ -135,6 +136,23 @@ def _define_module(target, variant):
"drivers/cam_icp/hfi.c",
],
},
"CONFIG_SPECTRA_TFE": {
True: [
"drivers/cam_isp/isp_hw_mgr/isp_hw/ppi_hw/cam_csid_ppi_core.c",
"drivers/cam_isp/isp_hw_mgr/isp_hw/ppi_hw/cam_csid_ppi_dev.c",
"drivers/cam_isp/isp_hw_mgr/isp_hw/ppi_hw/cam_csid_ppi100.c",
"drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_csid_hw/cam_tfe_csid.c",
"drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_csid_hw/cam_tfe_csid_dev.c",
"drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_csid_hw/cam_tfe_csid_core.c",
"drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_csid_hw/cam_tfe_csid_soc.c",
"drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe_bus.c",
"drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe_core.c",
"drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe_soc.c",
"drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe.c",
"drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_hw/cam_tfe_dev.c",
"drivers/cam_isp/isp_hw_mgr/cam_tfe_hw_mgr.c",
],
},
"CONFIG_SPECTRA_JPEG": {
True: [
"drivers/cam_jpeg/jpeg_hw/jpeg_enc_hw/jpeg_enc_dev.c",
@@ -237,7 +255,7 @@ def _define_module(target, variant):
)
copy_to_dist_dir(
name = "{}_camera_dist".format(tv),
name = "{}_camera_dist".format(target),
data = [":{}_camera".format(tv)],
dist_dir = "out/target/product/{}/dlkm/lib/modules/".format(target),
flat = True,
@@ -247,5 +265,5 @@ def _define_module(target, variant):
)
def define_camera_module():
_define_module("pineapple", "gki")
_define_module("pineapple", "consolidate")
for (t, v) in get_all_variants():
_define_module(t, v)