2019-06-18 23:36:53 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2018-2019 The LineageOS Project
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2018-06-22 05:00:35 +00:00
|
|
|
BUILD_BROKEN_DUP_RULES := true
|
2020-05-13 23:56:10 +00:00
|
|
|
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
|
2018-06-22 05:00:35 +00:00
|
|
|
|
2019-06-18 23:36:53 +00:00
|
|
|
BOARD_VENDOR := oneplus
|
2019-07-03 22:47:19 +00:00
|
|
|
|
|
|
|
VENDOR_PATH := device/oneplus/sm8150-common
|
2019-06-18 23:36:53 +00:00
|
|
|
|
|
|
|
# Architecture
|
|
|
|
TARGET_ARCH := arm64
|
2021-05-23 15:36:36 +00:00
|
|
|
TARGET_ARCH_VARIANT := armv8-2a-dotprod
|
2019-06-18 23:36:53 +00:00
|
|
|
TARGET_CPU_ABI := arm64-v8a
|
2021-05-23 15:36:36 +00:00
|
|
|
TARGET_CPU_VARIANT := cortex-a55
|
2019-06-18 23:36:53 +00:00
|
|
|
|
|
|
|
TARGET_2ND_ARCH := arm
|
2021-05-23 15:36:36 +00:00
|
|
|
TARGET_2ND_ARCH_VARIANT := armv8-2a
|
2019-06-18 23:36:53 +00:00
|
|
|
TARGET_2ND_CPU_ABI := armeabi-v7a
|
|
|
|
TARGET_2ND_CPU_ABI2 := armeabi
|
2021-05-23 15:36:36 +00:00
|
|
|
TARGET_2ND_CPU_VARIANT := cortex-a55
|
2019-06-18 23:36:53 +00:00
|
|
|
|
|
|
|
# Bootloader
|
2019-06-21 13:21:34 +00:00
|
|
|
TARGET_BOOTLOADER_BOARD_NAME := msmnile
|
2019-06-18 23:36:53 +00:00
|
|
|
TARGET_NO_BOOTLOADER := true
|
|
|
|
|
|
|
|
# Kernel
|
2020-07-01 15:36:26 +00:00
|
|
|
BOARD_BOOT_HEADER_VERSION := 2
|
2019-07-03 22:47:19 +00:00
|
|
|
BOARD_KERNEL_BASE := 0x00000000
|
2021-05-16 08:49:42 +00:00
|
|
|
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=2048 loop.max_part=7 androidboot.usbcontroller=a600000.dwc3 kpti=off
|
2019-11-04 17:34:20 +00:00
|
|
|
BOARD_KERNEL_CMDLINE += androidboot.vbmeta.avb_version=1.0
|
2019-06-18 23:36:53 +00:00
|
|
|
BOARD_KERNEL_PAGESIZE := 4096
|
2019-07-03 22:47:19 +00:00
|
|
|
BOARD_KERNEL_SEPARATED_DTBO := true
|
2020-07-01 15:36:26 +00:00
|
|
|
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
|
2021-05-23 15:36:36 +00:00
|
|
|
KERNEL_DEFCONFIG := vendor/sm8150-perf_defconfig
|
2019-06-18 23:36:53 +00:00
|
|
|
|
2019-07-03 22:47:19 +00:00
|
|
|
# Properties
|
2020-05-01 10:08:43 +00:00
|
|
|
TARGET_ODM_PROP += $(VENDOR_PATH)/odm.prop
|
2020-08-10 21:23:41 +00:00
|
|
|
TARGET_PRODUCT_PROP += $(VENDOR_PATH)/product.prop
|
2019-07-03 22:47:19 +00:00
|
|
|
TARGET_SYSTEM_PROP += $(VENDOR_PATH)/system.prop
|
2020-05-01 10:08:43 +00:00
|
|
|
TARGET_VENDOR_PROP += $(VENDOR_PATH)/vendor.prop
|
2019-07-03 22:47:19 +00:00
|
|
|
|
2019-05-07 05:42:02 +00:00
|
|
|
# A/B
|
|
|
|
AB_OTA_UPDATER := true
|
|
|
|
|
|
|
|
AB_OTA_PARTITIONS += \
|
|
|
|
boot \
|
|
|
|
dtbo \
|
|
|
|
odm \
|
|
|
|
system \
|
|
|
|
vendor \
|
|
|
|
vbmeta
|
|
|
|
|
2019-06-18 23:36:53 +00:00
|
|
|
# Audio
|
|
|
|
AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
|
2019-07-31 14:13:06 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
|
2019-07-03 22:47:19 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
|
2021-04-10 09:02:33 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
|
2019-06-18 23:36:53 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
|
2019-07-03 22:47:19 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
|
2019-06-18 23:36:53 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_HDMI_SPK := true
|
2019-07-31 14:13:06 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
|
2019-06-18 23:36:53 +00:00
|
|
|
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
|
2021-04-03 09:33:56 +00:00
|
|
|
BOARD_SUPPORTS_SOUND_TRIGGER := true
|
2019-06-18 23:36:53 +00:00
|
|
|
USE_CUSTOM_AUDIO_POLICY := 1
|
|
|
|
|
2020-05-25 13:49:53 +00:00
|
|
|
# FOD
|
|
|
|
TARGET_SURFACEFLINGER_FOD_LIB := //$(VENDOR_PATH):libfod_extension.oneplus_msmnile
|
|
|
|
|
2019-07-03 22:47:19 +00:00
|
|
|
# Display
|
2019-06-24 13:32:23 +00:00
|
|
|
MAX_VIRTUAL_DISPLAY_DIMENSION := 4096
|
2019-07-31 09:15:23 +00:00
|
|
|
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
|
2019-07-03 22:47:19 +00:00
|
|
|
TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
|
2019-07-31 09:16:10 +00:00
|
|
|
TARGET_USES_DISPLAY_RENDER_INTENTS := true
|
2019-07-29 17:34:57 +00:00
|
|
|
TARGET_USES_DRM_PP := true
|
2022-02-13 19:11:05 +00:00
|
|
|
TARGET_USES_FOD_ZPOS := true
|
2019-07-29 17:34:57 +00:00
|
|
|
TARGET_USES_GRALLOC1 := true
|
|
|
|
TARGET_USES_HWC2 := true
|
2019-06-24 13:32:23 +00:00
|
|
|
TARGET_USES_ION := true
|
|
|
|
|
2019-07-03 22:47:19 +00:00
|
|
|
# Fingerprint
|
|
|
|
SOONG_CONFIG_NAMESPACES += ONEPLUS_MSMNILE_FOD
|
2020-01-06 13:14:21 +00:00
|
|
|
SOONG_CONFIG_ONEPLUS_MSMNILE_FOD := POS_X POS_Y SIZE
|
2019-07-03 22:47:19 +00:00
|
|
|
|
|
|
|
# HIDL
|
2021-05-23 15:36:36 +00:00
|
|
|
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += \
|
|
|
|
$(VENDOR_PATH)/oneplus_vendor_framework_compatibility_matrix.xml
|
|
|
|
|
|
|
|
DEVICE_MATRIX_FILE += device/qcom/common/compatibility_matrix.xml
|
|
|
|
|
2021-04-06 06:29:24 +00:00
|
|
|
DEVICE_MANIFEST_FILE += $(VENDOR_PATH)/manifest.xml
|
|
|
|
ODM_MANIFEST_FILES += $(VENDOR_PATH)/manifest-qva.xml
|
2019-06-24 13:32:23 +00:00
|
|
|
|
2020-06-03 00:56:08 +00:00
|
|
|
# Init
|
|
|
|
TARGET_INIT_VENDOR_LIB := //$(VENDOR_PATH):libinit_oneplus-sm8150
|
|
|
|
TARGET_RECOVERY_DEVICE_MODULES := libinit_oneplus-sm8150
|
|
|
|
|
2019-07-03 22:47:19 +00:00
|
|
|
# Metadata
|
|
|
|
BOARD_USES_METADATA_PARTITION := true
|
2019-06-18 23:36:53 +00:00
|
|
|
|
2019-07-03 22:47:19 +00:00
|
|
|
# Partitions
|
2020-09-06 18:38:29 +00:00
|
|
|
BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
|
2020-01-28 21:21:30 +00:00
|
|
|
BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := ext4
|
2020-09-06 18:38:29 +00:00
|
|
|
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
|
2021-04-05 12:47:19 +00:00
|
|
|
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs
|
2019-11-14 12:14:45 +00:00
|
|
|
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
|
2020-01-28 21:21:30 +00:00
|
|
|
TARGET_COPY_OUT_ODM := odm
|
2019-07-03 22:47:19 +00:00
|
|
|
TARGET_COPY_OUT_VENDOR := vendor
|
2019-06-18 23:36:53 +00:00
|
|
|
|
2019-06-28 12:14:29 +00:00
|
|
|
# Power
|
2019-07-02 20:59:03 +00:00
|
|
|
TARGET_TAP_TO_WAKE_NODE := "/proc/touchpanel/double_tap_enable"
|
2019-06-28 12:14:29 +00:00
|
|
|
|
2019-06-18 23:40:28 +00:00
|
|
|
# Recovery
|
2020-07-01 15:36:26 +00:00
|
|
|
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
|
|
|
|
BOARD_INCLUDE_RECOVERY_DTBO := true
|
2021-02-03 03:13:27 +00:00
|
|
|
TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
|
2019-07-03 22:47:19 +00:00
|
|
|
TARGET_USERIMAGES_USE_F2FS := true
|
2019-06-18 23:36:53 +00:00
|
|
|
|
2019-07-03 22:47:19 +00:00
|
|
|
# Security patch level
|
2021-05-23 04:40:03 +00:00
|
|
|
VENDOR_SECURITY_PATCH := 2021-05-01
|
2019-06-18 23:36:53 +00:00
|
|
|
|
2019-02-01 19:27:25 +00:00
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy/vendor
|
|
|
|
PRODUCT_PRIVATE_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy/private
|
|
|
|
PRODUCT_PUBLIC_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy/public
|
2019-06-24 13:32:23 +00:00
|
|
|
|
2019-07-15 04:24:51 +00:00
|
|
|
# Sensors
|
|
|
|
SOONG_CONFIG_NAMESPACES += ONEPLUS_MSMNILE_SENSORS
|
|
|
|
SOONG_CONFIG_ONEPLUS_MSMNILE_SENSORS := ALS_POS_X ALS_POS_Y
|
|
|
|
|
2019-07-03 22:47:19 +00:00
|
|
|
# Verified Boot
|
|
|
|
BOARD_AVB_ENABLE := true
|
2021-05-10 13:36:52 +00:00
|
|
|
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 3
|
2019-07-03 22:47:19 +00:00
|
|
|
|
2019-06-24 13:32:23 +00:00
|
|
|
# WiFi
|
|
|
|
BOARD_WLAN_DEVICE := qcwcn
|
|
|
|
BOARD_HOSTAPD_DRIVER := NL80211
|
|
|
|
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
|
|
|
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
|
|
|
|
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
|
|
|
|
WIFI_DRIVER_DEFAULT := qca_cld3
|
|
|
|
WIFI_DRIVER_STATE_CTRL_PARAM := "/dev/wlan"
|
|
|
|
WIFI_DRIVER_STATE_OFF := "OFF"
|
|
|
|
WIFI_DRIVER_STATE_ON := "ON"
|
|
|
|
WIFI_HIDL_FEATURE_DUAL_INTERFACE := true
|
2019-10-03 03:24:23 +00:00
|
|
|
WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true
|
2019-06-24 13:32:23 +00:00
|
|
|
WPA_SUPPLICANT_VERSION := VER_0_8_X
|