You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
4.2 KiB
99 lines
4.2 KiB
# Huanglong Solution Env
|
|
$(call inherit-product-if-exists, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
|
$(call inherit-product-if-exists, $(SRC_TARGET_DIR)/product/full_base.mk)
|
|
|
|
PRODUCT_TYPE := tv
|
|
|
|
PRODUCT_BRAND ?= huanglong
|
|
PRODUCT_MODEL ?= huanglong
|
|
PRODUCT_MANUFACTURER ?= HL2.0
|
|
PRODUCT_CHARACTERISTICS ?= $(PRODUCT_TYPE)
|
|
|
|
TARGET_BOARD_PLATFORM ?= huanglong
|
|
TARGET_BOOTLOADER_BOARD_NAME ?= huanglong
|
|
|
|
# Define resources for application compilation
|
|
PRODUCT_AAPT_PREF_CONFIG ?= xhdpi
|
|
PRODUCT_AAPT_CONFIG ?= normal large xlarge hdpi xhdpi
|
|
|
|
# Declaration for selinux policies dir and files.
|
|
PRODUCT_SEPOLICY_SPLIT := true
|
|
# Declaration treble
|
|
PRODUCT_FULL_TREBLE_OVERRIDE := true
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|
|
PRODUCT_RETROFIT_DYNAMIC_PARTITIONS := false
|
|
|
|
DEVICE_HUANGLONG := vendor/device
|
|
SOC_PLATFORM_PATH := vendor/huanglong
|
|
VENDOR_OPEN_SOURCE := vendor/open_source
|
|
VENDOR_THIRDPARTY := vendor/thirdparty
|
|
VENDOR_TOOLS := vendor/tools
|
|
|
|
HUANGLONG_PLATFORM_VERSION ?= HuanglongV200R005C00SPC009B050
|
|
|
|
PRODUCT_DEVICE_COMMON := $(PRODUCT_DEVICE_DIR)/common
|
|
PRODUCT_ETC_DIR := $(PRODUCT_DEVICE_COMMON)/etc
|
|
|
|
# Customer image sign key
|
|
ifneq ($(wildcard $(SOC_PLATFORM_PATH)/build/security),)
|
|
PRODUCT_CERTIFICATE_PATH := $(SOC_PLATFORM_PATH)/build/security
|
|
PRODUCT_DEFAULT_DEV_CERTIFICATE := $(PRODUCT_CERTIFICATE_PATH)/testkey
|
|
endif
|
|
|
|
#---------------------------------------------
|
|
# Init Rc Copy File Config
|
|
#---------------------------------------------
|
|
SYSTEM_CUSTOM_INITRC_FILE ?= $(PRODUCT_DEVICE_COMMON)/etc/system/init.custom.rc
|
|
SYSTEM_INITRC_FILE ?= $(PRODUCT_DEVICE_COMMON)/etc/system/init.system.rc
|
|
VENDOR_CUSTOM_INITRC_FILE ?= $(PRODUCT_DEVICE_COMMON)/etc/vendor/init.custom.rc
|
|
VENDOR_INITRC_FILE ?= $(PRODUCT_DEVICE_COMMON)/etc/vendor/init.hardware.rc
|
|
DEVICE_FSTAB_FILE ?= $(PRODUCT_DEVICE_COMMON)/etc/vendor/fstab.hardware.android.fbe
|
|
DEVICE_UEVENTD_RC_FILE ?= $(PRODUCT_DEVICE_COMMON)/etc/vendor/ueventd.rc
|
|
|
|
#---------------------------------------------
|
|
# Customize Product Config
|
|
#---------------------------------------------
|
|
include $(TARGET_PRODUCT_DIR)/device.mk
|
|
|
|
#---------------------------------------------
|
|
# Device Properties
|
|
#---------------------------------------------
|
|
include $(PRODUCT_DEVICE_COMMON)/properties/aosp_system_properties.mk
|
|
include $(PRODUCT_DEVICE_COMMON)/properties/aosp_vendor_properties.mk
|
|
include $(PRODUCT_DEVICE_COMMON)/properties/im_system_properties.mk
|
|
include $(PRODUCT_DEVICE_COMMON)/properties/im_vendor_properties.mk
|
|
|
|
#---------------------------------------------
|
|
# Product Rc Copy File List
|
|
#---------------------------------------------
|
|
PRODUCT_COPY_FILES += \
|
|
$(PRODUCT_DEVICE_COMMON)/etc/root/init.hardware.rc:root/init.$(TARGET_BOARD_PLATFORM).rc \
|
|
$(PRODUCT_DEVICE_COMMON)/etc/vendor/product.type.xml:vendor/etc/permissions/product.type.xml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(SYSTEM_CUSTOM_INITRC_FILE):system/etc/init/hw/init.custom.rc \
|
|
$(SYSTEM_INITRC_FILE):system/etc/init/init.system.rc \
|
|
$(VENDOR_CUSTOM_INITRC_FILE):vendor/etc/init/hw/init.custom.rc \
|
|
$(VENDOR_INITRC_FILE):vendor/etc/init/hw/init.$(TARGET_BOARD_PLATFORM).rc \
|
|
$(DEVICE_FSTAB_FILE):vendor/etc/fstab.$(TARGET_BOARD_PLATFORM) \
|
|
$(DEVICE_UEVENTD_RC_FILE):vendor/etc/ueventd.rc
|
|
|
|
#---------------------------------------------
|
|
# Flash XML Copy File Config
|
|
#---------------------------------------------
|
|
PRODUCT_PARTITION_DIR ?= $(PRODUCT_DEVICE_COMMON)/partition
|
|
|
|
PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
|
|
$(PRODUCT_PARTITION_DIR)/flash_$(CHIP_REVISION).xml:images/flash_$(CHIP_REVISION).xml)
|
|
PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
|
|
$(PRODUCT_PARTITION_DIR)/flash_$(CHIP_REVISION)_ufs.xml:images/flash_$(CHIP_REVISION)_ufs.xml)
|
|
PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
|
|
$(PRODUCT_PARTITION_DIR)/flash_$(CHIP_VERSION)_$(CHIP_REVISION)_$(IMAGE_VARIANT).xml:images/flash_$(CHIP_REVISION)_$(IMAGE_VARIANT).xml)
|
|
PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
|
|
$(PRODUCT_PARTITION_DIR)/flash_$(CHIP_VERSION)_$(CHIP_REVISION)_$(IMAGE_VARIANT)_ufs.xml:images/flash_$(CHIP_REVISION)_$(IMAGE_VARIANT)_ufs.xml)
|
|
|
|
#---------------------------------------------
|
|
# Device product_package.mk
|
|
#---------------------------------------------
|
|
include $(PRODUCT_DEVICE_COMMON)/build/package.mk
|