summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Koskovich <zvnexus@outlook.com>2020-11-09 10:49:50 -0700
committeralk3pInjection <webmaster@raspii.tech>2022-01-16 08:24:08 +0800
commit44932e1f3241b947c33a717fa8283185a1bb71d7 (patch)
treedb6142ca3bb18b443a6ece33091dc09b6d98c86d
parent0eacfb1ec7ab3257306303bdb0b5db48db00cb4a (diff)
common: Import QCOM board targets
Change-Id: If54316d01628d1a69123a638d74897e0e34f9a7c
-rw-r--r--common.mk6
-rw-r--r--qcom_boards.mk55
2 files changed, 61 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index e67fe34..c6eea93 100644
--- a/common.mk
+++ b/common.mk
@@ -13,6 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+ifeq ($(TARGET_BOARD_PLATFORM),)
+$(error "TARGET_BOARD_PLATFORM is not defined yet, please define in your device makefile so it's accessible to QCOM common.")
+endif
+
+include $(LOCAL_PATH)/qcom_boards.mk
+
TARGET_COMPILE_WITH_MSM_KERNEL := true
TARGET_HAS_QC_KERNEL_SOURCE := true
BOARD_USES_ADRENO := true
diff --git a/qcom_boards.mk b/qcom_boards.mk
new file mode 100644
index 0000000..9f6226f
--- /dev/null
+++ b/qcom_boards.mk
@@ -0,0 +1,55 @@
+# List of QCOM targets.
+MSMSTEPPE := sm6150
+TRINKET := trinket
+
+QCOM_BOARD_PLATFORMS += \
+ $(MSMSTEPPE) \
+ $(TRINKET) \
+ atoll \
+ bengal \
+ holi \
+ kona \
+ lahaina \
+ lito \
+ msm8937 \
+ msm8953 \
+ msm8996 \
+ msm8998 \
+ msmnile \
+ sdm660 \
+ sdm710 \
+ sdm845
+
+# List of targets that use video hardware.
+MSM_VIDC_TARGET_LIST := \
+ $(MSMSTEPPE) \
+ $(TRINKET) \
+ atoll \
+ kona \
+ lito \
+ msm8937 \
+ msm8953 \
+ msm8996 \
+ msm8998 \
+ msmnile \
+ sdm660 \
+ sdm710 \
+ sdm845
+
+# List of targets that use master side content protection.
+MASTER_SIDE_CP_TARGET_LIST := \
+ $(MSMSTEPPE) \
+ $(TRINKET) \
+ atoll \
+ bengal \
+ kona \
+ lito \
+ msm8996 \
+ msm8998 \
+ msmnile \
+ sdm660 \
+ sdm710 \
+ sdm845
+
+# Refresh list of targets.
+-include vendor/qcom/opensource/core-utils/build/utils.mk