diff --git a/AndroidProducts.mk b/AndroidProducts.mk index 4467779..d1fbb08 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -24,7 +24,9 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/factory_cheetah.mk \ $(LOCAL_DIR)/aosp_panther.mk \ $(LOCAL_DIR)/aosp_panther_hwasan.mk \ - $(LOCAL_DIR)/factory_panther.mk + $(LOCAL_DIR)/factory_panther.mk \ + $(LOCAL_DIR)/lineage_cheetah.mk \ + $(LOCAL_DIR)/lineage_panther.mk COMMON_LUNCH_CHOICES := \ aosp_cloudripper-trunk_staging-userdebug \ diff --git a/BoardConfigLineage.mk b/BoardConfigLineage.mk new file mode 100644 index 0000000..eadedb9 --- /dev/null +++ b/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 +# diff --git a/cheetah/BoardConfig.mk b/cheetah/BoardConfig.mk index a748579..57eb422 100644 --- a/cheetah/BoardConfig.mk +++ b/cheetah/BoardConfig.mk @@ -43,3 +43,6 @@ include device/google/gs201/BoardConfig-common.mk -include vendor/google_devices/cheetah/proprietary/BoardConfigVendor.mk include device/google/pantah/sepolicy/cheetah-sepolicy.mk include device/google/pantah/wifi/BoardConfig-wifi.mk + +DEVICE_PATH := device/google/pantah +include $(DEVICE_PATH)/$(TARGET_BOOTLOADER_BOARD_NAME)/BoardConfigLineage.mk diff --git a/cheetah/BoardConfigLineage.mk b/cheetah/BoardConfigLineage.mk new file mode 100644 index 0000000..996f8be --- /dev/null +++ b/cheetah/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 diff --git a/cheetah/device-lineage.mk b/cheetah/device-lineage.mk new file mode 100644 index 0000000..fd82a16 --- /dev/null +++ b/cheetah/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 diff --git a/device-lineage.mk b/device-lineage.mk new file mode 100644 index 0000000..dc6adb4 --- /dev/null +++ b/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 diff --git a/lineage_cheetah.mk b/lineage_cheetah.mk new file mode 100644 index 0000000..47b2b49 --- /dev/null +++ b/lineage_cheetah.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 := cheetah +DEVICE_PATH := device/google/pantah +$(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 7 Pro +PRODUCT_NAME := lineage_$(DEVICE_CODENAME) + +# Boot animation +TARGET_SCREEN_HEIGHT := 3120 +TARGET_SCREEN_WIDTH := 1440 + +PRODUCT_BUILD_PROP_OVERRIDES += \ + BuildDesc="cheetah-user 15 AP3A.241005.015 12366759 release-keys" \ + BuildFingerprint=google/cheetah/cheetah:15/AP3A.241005.015/12366759:user/release-keys \ + DeviceProduct=$(DEVICE_CODENAME) diff --git a/lineage_panther.mk b/lineage_panther.mk new file mode 100644 index 0000000..758d890 --- /dev/null +++ b/lineage_panther.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 := panther +DEVICE_PATH := device/google/pantah +$(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 7 +PRODUCT_NAME := lineage_$(DEVICE_CODENAME) + +# Boot animation +TARGET_SCREEN_HEIGHT := 2400 +TARGET_SCREEN_WIDTH := 1080 + +PRODUCT_BUILD_PROP_OVERRIDES += \ + BuildDesc="panther-user 15 AP3A.241005.015 12366759 release-keys" \ + BuildFingerprint=google/panther/panther:15/AP3A.241005.015/12366759:user/release-keys \ + DeviceProduct=$(DEVICE_CODENAME) diff --git a/panther/BoardConfig.mk b/panther/BoardConfig.mk index 369afaf..f8021c5 100644 --- a/panther/BoardConfig.mk +++ b/panther/BoardConfig.mk @@ -48,3 +48,6 @@ include device/google/gs201/BoardConfig-common.mk -include vendor/google_devices/panther/proprietary/BoardConfigVendor.mk include device/google/pantah/sepolicy/panther-sepolicy.mk include device/google/pantah/wifi/BoardConfig-wifi.mk + +DEVICE_PATH := device/google/pantah +include $(DEVICE_PATH)/$(TARGET_BOOTLOADER_BOARD_NAME)/BoardConfigLineage.mk diff --git a/panther/BoardConfigLineage.mk b/panther/BoardConfigLineage.mk new file mode 100644 index 0000000..996f8be --- /dev/null +++ b/panther/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 diff --git a/panther/device-lineage.mk b/panther/device-lineage.mk new file mode 100644 index 0000000..fd82a16 --- /dev/null +++ b/panther/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