浏览代码

msm: camera: common: Add condition in Kbuild to compile presil code

Based on arch, config flag can be set for presil and when enabled,
presil code will be compiled.

CRs-Fixed: 2932495
Change-Id: Iabf1a74be3582d0b84b70777e406b4ce02218220
Signed-off-by: Mukund Madhusudan Atre <[email protected]>
Signed-off-by: Suraj Dongre <[email protected]>
Suraj Dongre 4 年之前
父节点
当前提交
f037f5b9fe
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Kbuild

+ 2 - 1
Kbuild

@@ -61,7 +61,6 @@ camera-y := \
 	drivers/cam_req_mgr/cam_req_mgr_timer.o \
 	drivers/cam_req_mgr/cam_req_mgr_debug.o \
 	drivers/cam_utils/cam_soc_util.o \
-	drivers/cam_utils/cam_io_util.o \
 	drivers/cam_utils/cam_packet_util.o \
 	drivers/cam_utils/cam_debug_util.o \
 	drivers/cam_utils/cam_trace.o \
@@ -88,7 +87,9 @@ camera-y := \
 
 ifeq (,$(filter $(CONFIG_CAM_PRESIL),y m))
 	camera-y += drivers/cam_presil/stub/cam_presil_hw_access_stub.o
+	camera-y += drivers/cam_utils/cam_io_util.o
 else
+	camera-y += drivers/cam_presil/presil/cam_presil_io_util.o
 	ccflags-y += -DCONFIG_CAM_PRESIL=1
 endif