m5: Allow tablet builds
authorNolen Johnson <johnsonnolen@gmail.com>
Wed, 12 Jul 2023 21:30:28 +0000 (17:30 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Wed, 12 Jul 2023 21:31:24 +0000 (17:31 -0400)
Change-Id: Ib400d6c6d87e4d663335f2fb73b47297462561a6

AndroidProducts.mk
lineage_m5_tab.mk [new file with mode: 0644]

index 72578445b18f8f6def0cfc96e4f3adc1ea5bfcf9..771827e878d2ab358590a3043feb2c60eac74124 100644 (file)
@@ -5,9 +5,13 @@
 #
 
 PRODUCT_MAKEFILES := \
-    $(LOCAL_DIR)/lineage_m5.mk
+    $(LOCAL_DIR)/lineage_m5.mk \
+    $(LOCAL_DIR)/lineage_m5_tab.mk
 
 COMMON_LUNCH_CHOICES := \
     lineage_m5-eng \
+    lineage_m5_tab-eng \
     lineage_m5-user \
-    lineage_m5-userdebug
+    lineage_m5_tab-user \
+    lineage_m5-userdebug \
+    lineage_m5_tab-userdebug
diff --git a/lineage_m5_tab.mk b/lineage_m5_tab.mk
new file mode 100644 (file)
index 0000000..6371795
--- /dev/null
@@ -0,0 +1,30 @@
+#
+# Copyright (C) 2021 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+TARGET_HAS_TEE := false
+
+# Inherit some common AOSP stuff
+$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
+
+# Inherit some common Lineage stuff
+$(call inherit-product, vendor/lineage/config/common_mini_tablet_wifionly.mk)
+
+# Inherit device configuration
+$(call inherit-product, $(LOCAL_PATH)/device.mk)
+
+## Device identifier. This must come after all inclusions
+PRODUCT_BRAND := bananapi
+PRODUCT_DEVICE := m5_tab
+PRODUCT_GMS_CLIENTID_BASE := android-askey-tv
+PRODUCT_MANUFACTURER := bananapi
+PRODUCT_MODEL := BPI-M5
+PRODUCT_NAME := lineage_m5_tab
+
+PRODUCT_BUILD_PROP_OVERRIDES += \
+    PRODUCT_NAME=adt3 \
+    PRIVATE_BUILD_DESC="adt3-user 11 RTT1.200909.003.A2 6832896 release-keys"
+
+BUILD_FINGERPRINT := ADT-3/adt3/adt3:11/RTT1.200909.003.A2/6832896:user/release-keys