sdm: Wrap DISPLAY_TERTIARY around QTI_BSP
1. HWC_DISPLAY_TERTIARY is not defined in AOSP. Wrap DISPLAY_TERTIARY around
QTI_BSP.
2. Include common.mk for hwc make file.
CRs-Fixed: 966190
Change-Id: I7f68feeb6fb94fb4dd77e3c21be9c563925bc200
diff --git a/common.mk b/common.mk
index fb955a2..76c392a 100644
--- a/common.mk
+++ b/common.mk
@@ -36,6 +36,14 @@
common_deps :=
kernel_includes :=
+# Executed only on QCOM BSPs
+ifeq ($(TARGET_USES_QCOM_BSP),true)
+# Enable QCOM Display features
+ common_flags += -DQTI_BSP
+endif
+ifneq ($(call is-platform-sdk-version-at-least,18),true)
+ common_flags += -DANDROID_JELLYBEAN_MR1=1
+endif
ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
# This check is to pick the kernel headers from the right location.
# If the macro above is defined, we make the assumption that we have the kernel