odroidc4: Allow tablet builds
authorNolen Johnson <johnsonnolen@gmail.com>
Wed, 12 Jul 2023 21:29:00 +0000 (17:29 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Wed, 12 Jul 2023 21:31:03 +0000 (17:31 -0400)
Change-Id: Ib400d6c6d87e4d663335f2fb73b47297462561a6

AndroidProducts.mk
lineage_odroidc4.mk
lineage_odroidc4_tab.mk [new file with mode: 0644]

index 37671e4d2f5ef1ab167186eec77cb0029eedce75..cd63f4fecc8ae607832e2da6de7e9ce1da8ccb35 100644 (file)
@@ -5,9 +5,13 @@
 #
 
 PRODUCT_MAKEFILES := \
-    $(LOCAL_DIR)/lineage_odroidc4.mk
+    $(LOCAL_DIR)/lineage_odroidc4.mk \
+    $(LOCAL_DIR)/lineage_odroidc4_tab.mk \
 
 COMMON_LUNCH_CHOICES := \
     lineage_odroidc4-eng \
+    lineage_odroidc4_tab-eng \
     lineage_odroidc4-user \
-    lineage_odroidc4-userdebug
+    lineage_odroidc4_tab-user \
+    lineage_odroidc4-userdebug \
+    lineage_odroidc4_tab-userdebug
index 935a4e2a9ad327feb91d65e737ed35471785b0ee..19ba1562cacb259f925bb1e95355b7f9c414b1f4 100644 (file)
@@ -16,7 +16,6 @@ $(call inherit-product, vendor/lineage/config/common_full_tv.mk)
 $(call inherit-product, $(LOCAL_PATH)/device.mk)
 
 ## Device identifier. This must come after all inclusions
-
 PRODUCT_BRAND := hardkernel
 PRODUCT_DEVICE := odroidc4
 PRODUCT_GMS_CLIENTID_BASE := android-askey-tv
diff --git a/lineage_odroidc4_tab.mk b/lineage_odroidc4_tab.mk
new file mode 100644 (file)
index 0000000..c27083d
--- /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 := hardkernel
+PRODUCT_DEVICE := odroidc4_tab
+PRODUCT_GMS_CLIENTID_BASE := android-askey-tv
+PRODUCT_MANUFACTURER := hardkernel
+PRODUCT_MODEL := odroid c4
+PRODUCT_NAME := lineage_odroidc4_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