151 lines
4.0 KiB
Makefile
Executable File
151 lines
4.0 KiB
Makefile
Executable File
#
|
|
# Copyright 2014 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.
|
|
#
|
|
|
|
# Use the non-open-source parts, if they're present
|
|
-include vendor/rockchip/rk3399/BoardConfigVendor.mk
|
|
|
|
|
|
TARGET_ARCH := arm64
|
|
TARGET_ARCH_VARIANT := armv8-a
|
|
TARGET_CPU_ABI := arm64-v8a
|
|
TARGET_CPU_ABI2 :=
|
|
TARGET_CPU_VARIANT := cortex-a53
|
|
TARGET_CPU_SMP := true
|
|
|
|
TARGET_2ND_ARCH := arm
|
|
TARGET_2ND_ARCH_VARIANT := armv7-a-neon
|
|
TARGET_2ND_CPU_ABI := armeabi-v7a
|
|
TARGET_2ND_CPU_ABI2 := armeabi
|
|
TARGET_2ND_CPU_VARIANT := cortex-a15
|
|
|
|
PRODUCT_KERNEL_ARCH := arm64
|
|
PRODUCT_KERNEL_DTS := rk3399/rp-rk3399
|
|
PRODUCT_KERNEL_CONFIG += rk3399.config
|
|
PRODUCT_UBOOT_CONFIG ?= rk3399
|
|
BOARD_PREBUILT_DTBIMAGE_DIR ?= $(PRODUCT_KERNEL_PATH)/arch/arm64/boot/dts/rockchip/rk3399
|
|
|
|
SF_PRIMARY_DISPLAY_ORIENTATION := 0
|
|
|
|
BOARD_AVB_ENABLE := false
|
|
# Disable emulator for "make dist" until there is a 64-bit qemu kernel
|
|
BUILD_EMULATOR := false
|
|
|
|
TARGET_BOARD_PLATFORM := rk3399
|
|
TARGET_BOARD_PLATFORM_GPU := mali-t860
|
|
BOARD_USE_DRM := true
|
|
|
|
# RenderScript
|
|
# OVERRIDE_RS_DRIVER := libnvRSDriver.so
|
|
BOARD_OVERRIDE_RS_CPU_VARIANT_32 := cortex-a53
|
|
BOARD_OVERRIDE_RS_CPU_VARIANT_64 := cortex-a53
|
|
# DISABLE_RS_64_BIT_DRIVER := true
|
|
|
|
TARGET_USES_64_BIT_BCMDHD := true
|
|
TARGET_USES_64_BIT_BINDER := true
|
|
# BOARD_USE_AFBC_LAYER := true
|
|
|
|
PRODUCT_KERNEL_VERSION := 5.10
|
|
|
|
# HACK: Build apps as 64b for volantis_64_only
|
|
ifneq (,$(filter ro.zygote=zygote64, $(PRODUCT_DEFAULT_PROPERTY_OVERRIDES)))
|
|
TARGET_PREFER_32_BIT_APPS :=
|
|
TARGET_SUPPORTS_64_BIT_APPS := true
|
|
endif
|
|
|
|
#BUILD_WITH_GO_OPT := true
|
|
|
|
# Sensors
|
|
BOARD_SENSOR_ST := false
|
|
BOARD_SENSOR_MPU_VR := false
|
|
BOARD_SENSOR_MPU_PAD := true
|
|
|
|
BOARD_USES_GENERIC_INVENSENSE := false
|
|
|
|
# GPU MaliT860 support opengl aep
|
|
BOARD_OPENGL_AEP := true
|
|
ifneq ($(filter %atv, $(TARGET_PRODUCT)), )
|
|
TARGET_BOARD_PLATFORM_PRODUCT ?= atv
|
|
else
|
|
ifneq ($(filter %box, $(TARGET_PRODUCT)), )
|
|
TARGET_BOARD_PLATFORM_PRODUCT ?= box
|
|
else
|
|
ifneq ($(filter %vr, $(TARGET_PRODUCT)), )
|
|
TARGET_BOARD_PLATFORM_PRODUCT ?= vr
|
|
else
|
|
TARGET_BOARD_PLATFORM_PRODUCT ?= tablet
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
ENABLE_CPUSETS := true
|
|
|
|
# Enable Dex compile opt as default
|
|
WITH_DEXPREOPT := true
|
|
|
|
BOARD_NFC_SUPPORT := false
|
|
BOARD_HAS_GPS := false
|
|
|
|
BOARD_GRAVITY_SENSOR_SUPPORT := true
|
|
BOARD_COMPASS_SENSOR_SUPPORT := false
|
|
BOARD_GYROSCOPE_SENSOR_SUPPORT := false
|
|
BOARD_PROXIMITY_SENSOR_SUPPORT := false
|
|
BOARD_LIGHT_SENSOR_SUPPORT := true
|
|
BOARD_PRESSURE_SENSOR_SUPPORT := false
|
|
BOARD_TEMPERATURE_SENSOR_SUPPORT := false
|
|
BOARD_USB_HOST_SUPPORT := true
|
|
|
|
#for optee support
|
|
PRODUCT_HAVE_OPTEE ?= true
|
|
BOARD_USE_SPARSE_SYSTEM_IMAGE := true
|
|
|
|
# Google Service and frp overlay
|
|
BUILD_WITH_GOOGLE_MARKET := false
|
|
BUILD_WITH_GOOGLE_MARKET_ALL := false
|
|
BUILD_WITH_GOOGLE_FRP := true
|
|
|
|
# Add widevine L3 support
|
|
BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3
|
|
|
|
# camera enable
|
|
BOARD_CAMERA_SUPPORT := true
|
|
BOARD_CAMERA_SUPPORT_EXT := true
|
|
ALLOW_MISSING_DEPENDENCIES=true
|
|
|
|
#Config omx to support codec type.
|
|
BOARD_SUPPORT_VP9 := true
|
|
BOARD_SUPPORT_VP6 := false
|
|
|
|
#for camera autofocus support
|
|
CAMERA_SUPPORT_AUTOFOCUS=true
|
|
|
|
# ANDROID HDMI
|
|
BOARD_SHOW_HDMI_SETTING := true
|
|
|
|
# for ethernet
|
|
BOARD_HS_ETHERNET := true
|
|
|
|
# for dynamaic afbc target
|
|
BOARD_HS_DYNAMIC_AFBC_TARGET := false
|
|
TARGET_RK_GRALLOC_AIDL := true
|
|
TARGET_RK_GRALLOC_VERSION := 4
|
|
|
|
# Allow deprecated BUILD_ module types to get DDK building
|
|
BUILD_BROKEN_USES_BUILD_COPY_HEADERS := true
|
|
BUILD_BROKEN_USES_BUILD_HOST_EXECUTABLE := true
|
|
BUILD_BROKEN_USES_BUILD_HOST_SHARED_LIBRARY := true
|
|
BUILD_BROKEN_USES_BUILD_HOST_STATIC_LIBRARY := true
|
|
BUILD_BROKEN_DUP_RULES := true
|