From 9fe4bc8a605fe43f24dbc42ff83babfae8379da2 Mon Sep 17 00:00:00 2001 From: DroidFreak32 Date: Mon, 12 Feb 2024 11:28:40 +0530 Subject: [PATCH] lineage: products: Bring back lineage_sdk_phone_arm64 emulator target Change-Id: I0578608bd78e1a03f90b17de4ee558646ce9ef2f --- build/target/product/AndroidProducts.mk | 2 ++ .../target/product/lineage_sdk_phone_arm64.mk | 31 +++++++++++++++++++ .../product/lineage_sdk_phone_arm64_board.mk | 22 +++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 build/target/product/lineage_sdk_phone_arm64.mk create mode 100644 build/target/product/lineage_sdk_phone_arm64_board.mk diff --git a/build/target/product/AndroidProducts.mk b/build/target/product/AndroidProducts.mk index 74a4443f..07288a82 100644 --- a/build/target/product/AndroidProducts.mk +++ b/build/target/product/AndroidProducts.mk @@ -27,6 +27,7 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/lineage_gsi_tv_x86_64.mk \ $(LOCAL_DIR)/lineage_sdk_car_arm64.mk \ $(LOCAL_DIR)/lineage_sdk_car_x86_64.mk \ + $(LOCAL_DIR)/lineage_sdk_phone_arm64.mk \ $(LOCAL_DIR)/lineage_sdk_phone_x86.mk \ $(LOCAL_DIR)/lineage_sdk_phone_x86_64.mk \ $(LOCAL_DIR)/lineage_sdk_tv_arm.mk \ @@ -45,6 +46,7 @@ COMMON_LUNCH_CHOICES := \ lineage_gsi_tv_x86_64-userdebug \ lineage_sdk_car_arm64-userdebug \ lineage_sdk_car_x86_64-userdebug \ + lineage_sdk_phone_arm64-userdebug \ lineage_sdk_phone_x86-userdebug \ lineage_sdk_phone_x86_64-userdebug \ lineage_sdk_tv_arm-userdebug \ diff --git a/build/target/product/lineage_sdk_phone_arm64.mk b/build/target/product/lineage_sdk_phone_arm64.mk new file mode 100644 index 00000000..a1f5afa8 --- /dev/null +++ b/build/target/product/lineage_sdk_phone_arm64.mk @@ -0,0 +1,31 @@ +# Copyright (C) 2021-2024 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +$(call inherit-product, device/generic/goldfish/64bitonly/product/sdk_phone64_arm64.mk) +$(call inherit-product, vendor/lineage/build/target/product/lineage_sdk_phone_arm64_board.mk) + +include vendor/lineage/build/target/product/lineage_generic_target.mk + +# Always build modules from source +PRODUCT_MODULE_BUILD_FROM_SOURCE := true + +# Enable mainline checking +PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed + +# Overrides +PRODUCT_NAME := lineage_sdk_phone_arm64 +PRODUCT_MODEL := LineageOS Android SDK built for arm64 + +PRODUCT_SDK_ADDON_NAME := lineage +PRODUCT_SDK_ADDON_SYS_IMG_SOURCE_PROP := vendor/lineage/build/target/product/source.properties diff --git a/build/target/product/lineage_sdk_phone_arm64_board.mk b/build/target/product/lineage_sdk_phone_arm64_board.mk new file mode 100644 index 00000000..5f2c4363 --- /dev/null +++ b/build/target/product/lineage_sdk_phone_arm64_board.mk @@ -0,0 +1,22 @@ +# Copyright (C) 2021-2024 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# 2.0G + 8M +BOARD_SUPER_PARTITION_SIZE := 2155872256 +BOARD_EMULATOR_DYNAMIC_PARTITIONS_SIZE := 2147483648 + +PRODUCT_SDK_ADDON_COPY_FILES += \ + device/generic/goldfish/data/etc/advancedFeatures.ini.arm:images/arm64-v8a/advancedFeatures.ini \ + device/generic/goldfish/data/etc/encryptionkey.img:images/arm64-v8a/encryptionkey.img \ + $(EMULATOR_KERNEL_FILE):images/arm64-v8a/kernel-ranchu