From 12bb926092640a24bfc2571b94bf729a2ee3095f Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Sun, 3 Aug 2025 13:11:48 +0530 Subject: [PATCH] qcom: camera-kernel: Add oplus flags to Kbuild Change-Id: Ia13fc62d8bc6a8259256eb29619dce34af3999c5 --- qcom/opensource/camera-kernel/Kbuild | 11 +++++++++++ qcom/opensource/camera-kernel/config/sun.mk | 2 ++ 2 files changed, 13 insertions(+) diff --git a/qcom/opensource/camera-kernel/Kbuild b/qcom/opensource/camera-kernel/Kbuild index 4b76285a31..67f9670547 100644 --- a/qcom/opensource/camera-kernel/Kbuild +++ b/qcom/opensource/camera-kernel/Kbuild @@ -321,6 +321,17 @@ camera-$(CONFIG_SPECTRA_VMRM) += \ drivers/cam_vmrm/cam_vmrm.o \ drivers/cam_vmrm/cam_vmrm_gh_wrapper.o +camera-$(CONFIG_SPECTRA_OPLUS) += \ + drivers/oplus/cam_sensor_module/cam_module_utils/cam_kevent_fb_custom.o \ + drivers/oplus/cam_sensor_module/cam_module_utils/cam_trace_custom.o \ + drivers/oplus/cam_sensor_module/cam_link/oplus_cam_eeprom.o \ + drivers/oplus/cam_sensor_module/cam_link/oplus_cam_sensor.o \ + drivers/oplus/cam_sensor_module/cam_link/oplus_cam_ois.o \ + drivers/oplus/cam_sensor_module/cam_link/oplus_cam_actuator.o \ + drivers/oplus/cam_sensor_module/cam_link/oplus_cam_insensor_eeprom.o + +ccflags-y += -DOPLUS_FEATURE_CAMERA_COMMON -DFEATURE_ENABLE=1 + camera-y += drivers/camera_main.o obj-m += camera.o diff --git a/qcom/opensource/camera-kernel/config/sun.mk b/qcom/opensource/camera-kernel/config/sun.mk index 35784ac453..31b80518e4 100644 --- a/qcom/opensource/camera-kernel/config/sun.mk +++ b/qcom/opensource/camera-kernel/config/sun.mk @@ -15,6 +15,7 @@ CONFIG_SPECTRA_SECURE_CAMNOC_REG_UPDATE := y CONFIG_MSM_MMRM := y CONFIG_TARGET_SYNX_ENABLE := y CONFIG_INTERCONNECT_QCOM := y +CONFIG_SPECTRA_OPLUS :=y CONFIG_SPECTRA_SECURE_DYN_PORT_CFG := y # Flags to pass into C preprocessor @@ -31,6 +32,7 @@ ccflags-y += -DCONFIG_SECURE_CAMERA_25=1 ccflags-y += -DCONFIG_SPECTRA_SECURE_CAMNOC_REG_UPDATE=1 ccflags-y += -DCONFIG_TARGET_SYNX_ENABLE=1 ccflags-y += -DCONFIG_INTERCONNECT_QCOM=1 +ccflags-y += -DCONFIG_SPECTRA_OPLUS=1 ccflags-y += -DCONFIG_SPECTRA_SECURE_DYN_PORT_CFG=1 # External Dependencies