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 <matre@codeaurora.org> Signed-off-by: Suraj Dongre <sdongre@codeaurora.org>
This commit is contained in:

committed by
Mukund Madhusudan Atre

parent
854ef5bbec
commit
f037f5b9fe
3
Kbuild
3
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
|
||||
|
||||
|
Reference in New Issue
Block a user