initial commit -- skeleton device tree

This commit is contained in:
Peter Cai 2021-10-11 13:11:31 -04:00
commit 9ca6480937
4 changed files with 43 additions and 0 deletions

2
AndroidProducts.mk Normal file
View File

@ -0,0 +1,2 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/peter_gsi_arm64.mk

24
device.mk Normal file
View File

@ -0,0 +1,24 @@
# All components inherited here go to system image
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_system.mk)
# All components inherited here go to system_ext image
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk)
$(call inherit-product, device/generic/common/gsi_system_ext.mk)
# All components inherited here go to product image
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk)
$(call inherit-product, device/generic/common/gsi_product.mk)
# Special settings for GSI releasing
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
# Enable dynamically-sized images
PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
# Relaxed artifact requirements (mirror AOSP GSI)
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := relaxed
# Optional setupwizard
PRODUCT_PROPERTY_OVERRIDES += \
ro.setupwizard.mode=OPTIONAL

16
peter_gsi_arm64.mk Normal file
View File

@ -0,0 +1,16 @@
# We don't inherit AOSP GSI config directly because it includes
# too many assumptions.
# All components inherited here go to system image
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
# All components inherited here go to boot image
$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_arm64/device.mk)
# Common device config
$(call inherit-product, device/peter/gsi/device.mk)
PRODUCT_NAME := peter_gsi_arm64
PRODUCT_DEVICE := peter_gsi_arm64
PRODUCT_BRAND := Android
PRODUCT_MODEL := AOSP on ARM64

View File

@ -0,0 +1 @@
include build/make/target/board/generic_arm64/BoardConfig.mk