refine product / board definition

This commit is contained in:
Ziyang Zhou
2021-09-24 00:15:41 +08:00
parent 88fdca1bc5
commit dc4d4c03a6
5 changed files with 42 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
#
# Copyright 2019 The Android Open Source 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.
#
# Provides overrides to configure the Dalvik heap for a 6GB phone
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapstartsize=16m \
dalvik.vm.heapgrowthlimit=256m \
dalvik.vm.heapsize=512m \
dalvik.vm.heaptargetutilization=0.5 \
dalvik.vm.heapminfree=8m \
dalvik.vm.heapmaxfree=32m

View File

@@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
$(call inherit-product-if-exists, product.mk)
AUDIOSERVER_MULTILIB := first
# ?
@@ -91,6 +89,7 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gpu_config.sh:$(TARGET_COPY_OUT_VENDOR)/bin/gpu_config.sh \
# Extend heap size we use for dalvik/art runtime
$(call inherit-product, frameworks/native/build/tablet-7in-hdpi-1024-dalvik-heap.mk)
$(call inherit-product, $(LOCAL_PATH)/phone-xhdpi-6144-dalvik-heap.mk)
$(call inherit-product-if-exists, product.mk)

View File

@@ -9,6 +9,13 @@ MINIMAL_FONT_FOOTPRINT := false
# use seperate vendor partition
TARGET_COPY_OUT_VENDOR := vendor
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
BOARD_VENDORIMAGE_PARTITION_SIZE := 367001600
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_GPU_DRIVERS := virgl radeonsi
DEVICE_MANIFEST_FILE := device/redroid/manifest.xml

View File

@@ -6,6 +6,13 @@ TARGET_USES_HWC2 := true
SMALLER_FONT_FOOTPRINT := false
MINIMAL_FONT_FOOTPRINT := false
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
BOARD_VENDORIMAGE_PARTITION_SIZE := 367001600
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
# use seperate vendor partition
TARGET_COPY_OUT_VENDOR := vendor

View File

@@ -1,9 +1,5 @@
# This file is executed by build/envsetup.sh, and can use anything
# defined in envsetup.sh.
add_lunch_combo redroid_x86_64-eng
add_lunch_combo redroid_x86_64-userdebug
add_lunch_combo redroid_x86_64-user
add_lunch_combo redroid_arm64-eng
add_lunch_combo redroid_arm64-userdebug
add_lunch_combo redroid_arm64-user