Răsfoiți Sursa

Add initial Lineage product makefiles

Co-authored-by: Michael Bestas <[email protected]>
Change-Id: I0781b6d4d74680ce7f0d860048871da7c2d43fb6
Chirayu Desai 3 ani în urmă
părinte
comite
d74f0f605f

+ 2 - 1
AndroidProducts.mk

@@ -17,7 +17,8 @@
 PRODUCT_MAKEFILES := \
     $(LOCAL_DIR)/aosp_lynx.mk \
     $(LOCAL_DIR)/aosp_lynx_hwasan.mk \
-    $(LOCAL_DIR)/factory_lynx.mk
+    $(LOCAL_DIR)/factory_lynx.mk \
+    $(LOCAL_DIR)/lineage_lynx.mk
 
 COMMON_LUNCH_CHOICES := \
     aosp_lynx-trunk_staging-userdebug

+ 5 - 0
BoardConfigLineage.mk

@@ -0,0 +1,5 @@
+#
+# SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
+# SPDX-FileCopyrightText: 2021-2024 The Calyx Institute
+# SPDX-License-Identifier: Apache-2.0
+#

+ 7 - 0
device-lineage.mk

@@ -0,0 +1,7 @@
+#
+# SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
+# SPDX-FileCopyrightText: 2021-2024 The Calyx Institute
+# SPDX-License-Identifier: Apache-2.0
+#
+
+DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/overlay-lineage

+ 30 - 0
lineage_lynx.mk

@@ -0,0 +1,30 @@
+#
+# SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
+# SPDX-FileCopyrightText: 2021-2024 The Calyx Institute
+# SPDX-License-Identifier: Apache-2.0
+#
+
+# Inherit some common stuff
+TARGET_DISABLE_EPPE := true
+$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
+
+# Inherit device configuration
+DEVICE_CODENAME := lynx
+DEVICE_PATH := device/google/lynx
+$(call inherit-product, $(DEVICE_PATH)/aosp_$(DEVICE_CODENAME).mk)
+$(call inherit-product, device/google/gs201/lineage_common.mk)
+$(call inherit-product, $(DEVICE_PATH)/$(DEVICE_CODENAME)/device-lineage.mk)
+
+# Device identifier. This must come after all inclusions
+PRODUCT_BRAND := google
+PRODUCT_MODEL := Pixel 7a
+PRODUCT_NAME := lineage_$(DEVICE_CODENAME)
+
+# Boot animation
+TARGET_SCREEN_HEIGHT := 2400
+TARGET_SCREEN_WIDTH := 1080
+
+PRODUCT_BUILD_PROP_OVERRIDES += \
+    BuildDesc="lynx-user 15 AP3A.241005.015 12366759 release-keys" \
+    BuildFingerprint=google/lynx/lynx:15/AP3A.241005.015/12366759:user/release-keys \
+    DeviceProduct=$(DEVICE_CODENAME)

+ 3 - 0
lynx/BoardConfig.mk

@@ -43,3 +43,6 @@ include device/google/gs201/BoardConfig-common.mk
 -include vendor/google_devices/lynx/proprietary/BoardConfigVendor.mk
 include device/google/lynx/sepolicy/lynx-sepolicy.mk
 include device/google/gs201/wifi/qcom/BoardConfig-wifi.mk
+
+DEVICE_PATH := device/google/lynx
+include $(DEVICE_PATH)/$(TARGET_BOOTLOADER_BOARD_NAME)/BoardConfigLineage.mk

+ 7 - 0
lynx/BoardConfigLineage.mk

@@ -0,0 +1,7 @@
+#
+# SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
+# SPDX-FileCopyrightText: 2021-2024 The Calyx Institute
+# SPDX-License-Identifier: Apache-2.0
+#
+
+include $(DEVICE_PATH)/BoardConfigLineage.mk

+ 9 - 0
lynx/device-lineage.mk

@@ -0,0 +1,9 @@
+#
+# SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
+# SPDX-FileCopyrightText: 2021-2024 The Calyx Institute
+# SPDX-License-Identifier: Apache-2.0
+#
+
+$(call inherit-product, $(DEVICE_PATH)/device-lineage.mk)
+
+DEVICE_PACKAGE_OVERLAYS += $(DEVICE_PATH)/$(DEVICE_CODENAME)/overlay-lineage