summaryrefslogtreecommitdiff
path: root/drivers/media/sprd_dcam/common/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/sprd_dcam/common/Makefile.inc')
-rw-r--r--drivers/media/sprd_dcam/common/Makefile.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/media/sprd_dcam/common/Makefile.inc b/drivers/media/sprd_dcam/common/Makefile.inc
new file mode 100644
index 00000000..16cf7800
--- /dev/null
+++ b/drivers/media/sprd_dcam/common/Makefile.inc
@@ -0,0 +1,15 @@
+# SC88XX Platform Support
+
+ifeq ($(CONFIG_ARCH_SCX30G2),y)
+ccflags-y += -Idrivers/media/sprd_dcam/tshark
+DEFS = -DVERSION3D=1
+else ifeq ($(CONFIG_ARCH_SCX30G),y)
+ccflags-y += -Idrivers/media/sprd_dcam/tshark
+DEFS = -DVERSION3T=1
+else ifeq ($(CONFIG_ARCH_SCX35L),y)
+ccflags-y += -Idrivers/media/sprd_dcam/sharkl
+DEFS = -DVERSION3L=1
+endif
+
+ccflags-y += $(DEFS)
+ccflags-y += -Idrivers/media/sprd_dcam/common