2019-06-18 23:36:53 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2018-2019 The LineageOS Project
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
BOARD_VENDOR := oneplus
|
2019-06-19 03:48:28 +00:00
|
|
|
DEVICE_PATH := device/oneplus/guacamole
|
2019-06-18 23:36:53 +00:00
|
|
|
|
|
|
|
# Architecture
|
|
|
|
TARGET_ARCH := arm64
|
|
|
|
TARGET_ARCH_VARIANT := armv8-2a
|
|
|
|
TARGET_CPU_ABI := arm64-v8a
|
|
|
|
TARGET_CPU_ABI2 :=
|
|
|
|
TARGET_CPU_VARIANT := cortex-a75
|
|
|
|
|
|
|
|
TARGET_2ND_ARCH := arm
|
|
|
|
TARGET_2ND_ARCH_VARIANT := armv8-a
|
|
|
|
TARGET_2ND_CPU_ABI := armeabi-v7a
|
|
|
|
TARGET_2ND_CPU_ABI2 := armeabi
|
2019-06-19 12:11:52 +00:00
|
|
|
TARGET_2ND_CPU_VARIANT := cortex-a75
|
2019-06-18 23:36:53 +00:00
|
|
|
|
|
|
|
TARGET_USES_64_BIT_BINDER := true
|
|
|
|
|
2019-06-19 12:11:52 +00:00
|
|
|
ENABLE_CPUSETS := true
|
|
|
|
ENABLE_SCHEDBOOST := true
|
|
|
|
|
2019-06-18 23:36:53 +00:00
|
|
|
# Assert
|
|
|
|
TARGET_OTA_ASSERT_DEVICE := OnePlus7Pro
|
|
|
|
|
|
|
|
# Bootloader
|
|
|
|
TARGET_BOOTLOADER_BOARD_NAME := sm8150
|
|
|
|
TARGET_NO_BOOTLOADER := true
|
2019-06-19 12:11:52 +00:00
|
|
|
TARGET_USES_UEFI := true
|
2019-06-18 23:36:53 +00:00
|
|
|
|
|
|
|
# Kernel
|
|
|
|
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=2048 firmware_class.path=/vendor/firmware_mnt/image loop.max_part=7 androidboot.usbcontroller=a600000.dwc3
|
2019-06-19 12:11:52 +00:00
|
|
|
#BOARD_KERNEL_CMDLINE += skip_override androidboot.fastboot=1
|
2019-06-18 23:36:53 +00:00
|
|
|
BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
|
|
|
|
BOARD_KERNEL_BASE := 0x00000000
|
|
|
|
BOARD_KERNEL_PAGESIZE := 4096
|
|
|
|
BOARD_KERNEL_TAGS_OFFSET := 0x01E00000
|
|
|
|
BOARD_RAMDISK_OFFSET := 0x02000000
|
|
|
|
BOARD_ROOT_EXTRA_FOLDERS := odm op1 op2
|
|
|
|
BOARD_ROOT_EXTRA_SYMLINKS := /vendor/dsp:/dsp /vendor/firmware_mnt:/firmware /vendor/bt_firmware:/bt_firmware /mnt/vendor/persist:/persist
|
|
|
|
TARGET_KERNEL_ARCH := arm64
|
|
|
|
TARGET_KERNEL_HEADER_ARCH := arm64
|
|
|
|
TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-
|
2019-06-19 12:12:44 +00:00
|
|
|
BOARD_KERNEL_IMAGE_NAME := Image-dtb
|
2019-06-18 23:36:53 +00:00
|
|
|
TARGET_KERNEL_SOURCE := kernel/oneplus/sm8150
|
2019-06-19 13:36:29 +00:00
|
|
|
TARGET_KERNEL_CONFIG := SD_defconfig
|
2019-06-19 00:36:25 +00:00
|
|
|
TARGET_KERNEL_CLANG_COMPILE := true
|
|
|
|
TARGET_USE_SDCLANG := true
|
2019-06-18 23:36:53 +00:00
|
|
|
BOARD_KERNEL_SEPARATED_DTBO := true
|
|
|
|
|
|
|
|
# Partitions
|
|
|
|
BOARD_BOOTIMAGE_PARTITION_SIZE := 100663296
|
|
|
|
BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
|
|
|
|
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 100663296
|
|
|
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3640655872
|
|
|
|
BOARD_VENDORIMAGE_PARTITION_SIZE := 1073741824
|
|
|
|
BOARD_USERDATAIMAGE_PARTITION_SIZE := 115601780736
|
|
|
|
BOARD_DTBOIMG_PARTITION_SIZE := 8388608
|
|
|
|
BOARD_FLASH_BLOCK_SIZE := 262144
|
|
|
|
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
|
|
|
|
TARGET_NO_RECOVERY := true
|
|
|
|
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
|
|
|
|
BOARD_USES_RECOVERY_AS_BOOT := true
|
|
|
|
|
|
|
|
TARGET_USERIMAGES_USE_EXT4 := true
|
|
|
|
TARGET_USERIMAGES_USE_F2FS := true
|
|
|
|
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
|
|
|
|
TARGET_USES_MKE2FS := true
|
|
|
|
|
|
|
|
TARGET_COPY_OUT_VENDOR := vendor
|
|
|
|
|
2019-06-19 06:36:13 +00:00
|
|
|
# Metadata
|
|
|
|
BOARD_USES_METADATA_PARTITION := true
|
|
|
|
|
2019-06-19 07:39:55 +00:00
|
|
|
# AVB
|
|
|
|
BOARD_AVB_ENABLE := true
|
2019-06-19 08:19:56 +00:00
|
|
|
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --set_hashtree_disabled_flag
|
|
|
|
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 2
|
2019-06-19 07:39:55 +00:00
|
|
|
|
2019-06-18 23:36:53 +00:00
|
|
|
# Platform
|
|
|
|
TARGET_BOARD_PLATFORM := msmnile
|
|
|
|
TARGET_BOARD_PLATFORM_GPU := qcom-adreno640
|
2019-06-19 05:13:39 +00:00
|
|
|
TARGET_USES_HARDWARE_QCOM_BOOTCTRL := true
|
2019-06-19 12:11:52 +00:00
|
|
|
QCOM_BOARD_PLATFORMS += msmnile
|
|
|
|
BOARD_USES_QCOM_HARDWARE := true
|
|
|
|
TARGET_USES_QCOM_BSP := true
|
2019-06-18 23:36:53 +00:00
|
|
|
|
|
|
|
# Audio
|
|
|
|
AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
|
|
|
|
AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
|
|
|
|
AUDIO_FEATURE_ENABLED_HDMI_SPK := true
|
|
|
|
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
|
|
|
|
USE_CUSTOM_AUDIO_POLICY := 1
|
|
|
|
USE_XML_AUDIO_POLICY_CONF := 1
|
|
|
|
|
2019-06-18 23:43:47 +00:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
|
|
|
|
|
2019-06-18 23:51:14 +00:00
|
|
|
# Bluetooth
|
|
|
|
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include
|
2019-06-18 23:36:53 +00:00
|
|
|
|
|
|
|
# Camera
|
|
|
|
TARGET_USES_QTI_CAMERA_DEVICE := true
|
|
|
|
|
|
|
|
# Charger Mode
|
|
|
|
BOARD_CHARGER_ENABLE_SUSPEND := true
|
|
|
|
|
|
|
|
# Dexopt
|
2019-06-19 01:30:10 +00:00
|
|
|
WITH_DEXPREOPT ?= true
|
2019-06-18 23:36:53 +00:00
|
|
|
WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= true
|
|
|
|
|
|
|
|
# DRM
|
|
|
|
TARGET_ENABLE_MEDIADRM_64 := true
|
|
|
|
|
|
|
|
# Filesystem
|
|
|
|
TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/config.fs
|
|
|
|
|
|
|
|
# Graphics
|
|
|
|
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 2
|
|
|
|
TARGET_USES_HWC2 := true
|
|
|
|
|
|
|
|
# RenderScript
|
2019-06-19 12:11:52 +00:00
|
|
|
#OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
|
2019-06-18 23:36:53 +00:00
|
|
|
|
|
|
|
# RIL
|
|
|
|
TARGET_PROVIDES_QTI_TELEPHONY_JAR := true
|
|
|
|
TARGET_RIL_VARIANT := caf
|
|
|
|
|
|
|
|
# Sepolicy: TBD
|
|
|
|
|
2019-06-18 23:40:28 +00:00
|
|
|
# Recovery
|
|
|
|
TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
|
|
|
|
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
|
2019-06-18 23:36:53 +00:00
|
|
|
|
|
|
|
# Treble
|
|
|
|
BOARD_VNDK_VERSION := current
|
|
|
|
PRODUCT_FULL_TREBLE_OVERRIDE := true
|
2019-06-19 00:39:21 +00:00
|
|
|
PRODUCT_SHIPPING_API_LEVEL := 28
|
2019-06-19 00:32:11 +00:00
|
|
|
|
|
|
|
# System.prop
|
|
|
|
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
|
2019-06-18 23:36:53 +00:00
|
|
|
|
2019-06-19 01:29:14 +00:00
|
|
|
# HIDL
|
|
|
|
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := $(DEVICE_PATH)/framework_compatibility_matrix.xml
|
|
|
|
DEVICE_FRAMEWORK_MANIFEST_FILE := $(DEVICE_PATH)/framework_manifest.xml
|
|
|
|
DEVICE_MATRIX_FILE := $(DEVICE_PATH)/compatibility_matrix.xml
|
|
|
|
|
2019-06-19 06:34:53 +00:00
|
|
|
# Sepolicy
|
|
|
|
BOARD_PLAT_PRIVATE_SEPOLICY_DIR += $(DEVICE_PATH)/sepolicy/private
|
|
|
|
BOARD_PLAT_PRIVATE_SEPOLICY_DIR += device/qcom/sepolicy/private
|
|
|
|
BOARD_PLAT_PUBLIC_SEPOLICY_DIR += device/qcom/sepolicy/public
|