From 7f91afa6fc993e56a3f9325c369ebe2390f0066d Mon Sep 17 00:00:00 2001 From: Asriadi Rahim Date: Sat, 20 Jul 2024 23:45:08 +0800 Subject: [PATCH] walleye: Initial Evolution-X 9.x makefiles and dependencies Signed-off-by: Asriadi Rahim --- AndroidProducts.mk | 7 +++--- BoardConfig.mk | 3 +++ README.md | 24 +++++++++++++++++++ aosp_walleye_hwasan.mk | 2 +- aosp_walleye_test.mk | 2 +- evolution.dependencies | 10 ++++++++ aosp_walleye.mk => lineage_walleye.mk | 33 +++++++++++++++++++++++---- 7 files changed, 71 insertions(+), 10 deletions(-) create mode 100644 README.md create mode 100644 evolution.dependencies rename aosp_walleye.mk => lineage_walleye.mk (60%) diff --git a/AndroidProducts.mk b/AndroidProducts.mk index 6d9add0..d3f24a8 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -15,10 +15,11 @@ # PRODUCT_MAKEFILES := \ - $(LOCAL_DIR)/aosp_walleye.mk \ $(LOCAL_DIR)/aosp_walleye_test.mk \ $(LOCAL_DIR)/aosp_walleye_hwasan.mk \ + $(LOCAL_DIR)/lineage_walleye.mk \ COMMON_LUNCH_CHOICES := \ - aosp_walleye-userdebug \ - aosp_walleye_test-userdebug + lineage_walleye-eng \ + lineage_walleye-userdebug \ + lineage_walleye-user diff --git a/BoardConfig.mk b/BoardConfig.mk index 9be8b42..83e5552 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -43,6 +43,9 @@ TARGET_RECOVERY_UI_LIB := \ librecovery_ui_walleye \ libfstab +# Kernel +TARGET_KERNEL_CONFIG := eucalyptus_walleye_defconfig + # Board uses A/B OTA. AB_OTA_UPDATER := true diff --git a/README.md b/README.md new file mode 100644 index 0000000..426942c --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# Device Tree for Google Pixel 2 + +The Google Pixel 2 (codenamed _"walleye"_) is a mid-range smartphone from Google. +It was released in October 2017. + +## Device specifications + +| Device | Google Pixel 2 | +| ----------------------- | :------------------------------------------- | +| SoC | Qualcomm MSM8998 Snapdragon 835 (10 nm) | +| CPU | Octa-core (4x2.35 GHz Kryo & 4x1.9 GHz Kryo) | +| GPU | Adreno 540 | +| Memory | 4GB RAM (LPDDR4X) | +| Shipped Android version | 8.0 | +| Storage | 64/128GB UFS 2.1 | +| Battery | Non-removable Li-Ion 2700 mAh | +| Dimensions | 145.7 mm x 69.7 mm x 7.8 mm | +| Display | 1080x1920 (441 PPI) AMOLED 127 mm (5 in) | +| Rear camera | 12.2 MP, Dual LED flash | +| Front camera | 8 MP, No flash | + +## Device picture + +![Google Pixel 2](https://raw.githubusercontent.com/PixelExperience/official_devices/master/images/.thumbs/300/walleye.png) \ No newline at end of file diff --git a/aosp_walleye_hwasan.mk b/aosp_walleye_hwasan.mk index 81afa64..a56bb23 100644 --- a/aosp_walleye_hwasan.mk +++ b/aosp_walleye_hwasan.mk @@ -14,7 +14,7 @@ # limitations under the License. # -$(call inherit-product, device/google/walleye/aosp_walleye.mk) +$(call inherit-product, device/google/walleye/lineage_walleye.mk) PRODUCT_NAME := aosp_walleye_hwasan # Add "hwaddress" as a global sanitizer if it's missing. diff --git a/aosp_walleye_test.mk b/aosp_walleye_test.mk index fcfd840..38683ff 100644 --- a/aosp_walleye_test.mk +++ b/aosp_walleye_test.mk @@ -14,6 +14,6 @@ # limitations under the License. # -$(call inherit-product, device/google/walleye/aosp_walleye.mk) +$(call inherit-product, device/google/walleye/lineage_walleye.mk) PRODUCT_NAME := aosp_walleye_test diff --git a/evolution.dependencies b/evolution.dependencies new file mode 100644 index 0000000..1101cce --- /dev/null +++ b/evolution.dependencies @@ -0,0 +1,10 @@ +[ + { + "repository": "android_device_google_wahoo", + "target_path": "device/google/wahoo" + }, + { + "repository": "vendor_google_walleye", + "target_path": "vendor/google/walleye" + } +] \ No newline at end of file diff --git a/aosp_walleye.mk b/lineage_walleye.mk similarity index 60% rename from aosp_walleye.mk rename to lineage_walleye.mk index 5f4c625..9abd4ba 100644 --- a/aosp_walleye.mk +++ b/lineage_walleye.mk @@ -18,8 +18,26 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) +# Inherit some common EvolutionX stuff +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) +# EvolutionX Specific Flags +EVO_BUILD_TYPE := Official +WITH_GMS := true + +# Inherit BCR +BUILD_BCR := false + +# EPPE +TARGET_DISABLE_EPPE := true + +# Boot animation +TARGET_SCREEN_HEIGHT := 1920 +TARGET_SCREEN_WIDTH := 1080 + +# Inherit device configuration $(call inherit-product, device/google/walleye/device-walleye.mk) +$(call inherit-product, vendor/google/walleye/walleye-vendor.mk) $(call inherit-product-if-exists, vendor/google_devices/walleye/proprietary/device-vendor-walleye.mk) PRODUCT_PACKAGES += \ @@ -28,12 +46,17 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ device/google/walleye/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml -PRODUCT_RESTRICT_VENDOR_FILES := owner - PRODUCT_PACKAGES += com.android.vndk.current.on_vendor +## Device identifier. This must come after all inclusions PRODUCT_MANUFACTURER := Google -PRODUCT_BRAND := Android -PRODUCT_NAME := aosp_walleye +PRODUCT_BRAND := google +PRODUCT_NAME := lineage_walleye PRODUCT_DEVICE := walleye -PRODUCT_MODEL := AOSP on walleye +PRODUCT_MODEL := Pixel 2 + +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRODUCT_NAME=walleye \ + PRIVATE_BUILD_DESC="walleye-user 11 RP1A.201005.004.A1 6934943 release-keys" + +BUILD_FINGERPRINT := google/walleye/walleye:11/RP1A.201005.004.A1/6934943:user/release-keys