radxa0: Allow tablet builds
authorNolen Johnson <johnsonnolen@gmail.com>
Sat, 8 Jul 2023 22:28:14 +0000 (18:28 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Thu, 13 Jul 2023 22:07:36 +0000 (00:07 +0200)
Change-Id: Ib400d6c6d87e4d663335f2fb73b47297462561a6
(cherry picked from commit 0ff00541ee261e7f7d5a0f1923d8583678fe5eac)

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

index 4e34cf5fad8281cbcaadf0e4fd1a7e0fbfdeeb2e..135a0e190951e0998245834da410bb7c1892bc9a 100644 (file)
@@ -5,9 +5,14 @@
 #
 
 PRODUCT_MAKEFILES := \
-    $(LOCAL_DIR)/lineage_radxa0.mk
+    $(LOCAL_DIR)/lineage_radxa0.mk \
+    $(LOCAL_DIR)/lineage_radxa0_tab.mk
 
 COMMON_LUNCH_CHOICES := \
     lineage_radxa0-eng \
+    lineage_radxa0_tab-eng \
     lineage_radxa0-user \
-    lineage_radxa0-userdebug
+    lineage_radxa0_tab-user \
+    lineage_radxa0-userdebug \
+    lineage_radxa0_tab-userdebug
+
diff --git a/lineage_radxa0_tab.mk b/lineage_radxa0_tab.mk
new file mode 100644 (file)
index 0000000..9045747
--- /dev/null
@@ -0,0 +1,29 @@
+#
+# 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 := Radxa
+PRODUCT_DEVICE := radxa0_tab
+PRODUCT_MANUFACTURER := radxa
+PRODUCT_MODEL := Radxa Zero
+PRODUCT_NAME := lineage_radxa0_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