Skip to content

Commit

Permalink
sm8150-common: the big cleanup
Browse files Browse the repository at this point in the history
* move to as many components as we reasonably can
* drop all duplicate configs and properties
* add missing oneplus usb additions

Signed-off-by: Omkar Chandorkar <[email protected]>
  • Loading branch information
gotenksIN committed Mar 3, 2022
1 parent 865e792 commit c719aae
Show file tree
Hide file tree
Showing 43 changed files with 566 additions and 5,993 deletions.
38 changes: 3 additions & 35 deletions BoardConfigCommon.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ BOARD_KERNEL_SEPARATED_DTBO := true
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
KERNEL_DEFCONFIG := vendor/sm8150-perf_defconfig

# Properties
TARGET_ODM_PROP += $(VENDOR_PATH)/odm.prop
TARGET_PRODUCT_PROP += $(VENDOR_PATH)/product.prop
TARGET_SYSTEM_PROP += $(VENDOR_PATH)/system.prop
TARGET_VENDOR_PROP += $(VENDOR_PATH)/vendor.prop

# A/B
AB_OTA_UPDATER := true

Expand All @@ -54,41 +48,18 @@ AB_OTA_PARTITIONS += \
vendor \
vbmeta

# Audio
AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD := true
AUDIO_FEATURE_ENABLED_AUDIOSPHERE := true
AUDIO_FEATURE_ENABLED_COMPRESS_VOIP := true
AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
AUDIO_FEATURE_ENABLED_EXTN_FORMATS := true
AUDIO_FEATURE_ENABLED_FM_POWER_OPT := true
AUDIO_FEATURE_ENABLED_HDMI_SPK := true
AUDIO_FEATURE_ENABLED_INSTANCE_ID := true
AUDIO_FEATURE_ENABLED_PROXY_DEVICE := true
BOARD_SUPPORTS_SOUND_TRIGGER := true
USE_CUSTOM_AUDIO_POLICY := 1

# FOD
TARGET_USES_FOD_ZPOS := true
TARGET_SURFACEFLINGER_UDFPS_LIB := //device/oneplus/common:libudfps_extension.oneplus

# Display
MAX_VIRTUAL_DISPLAY_DIMENSION := 4096
NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
TARGET_USES_DISPLAY_RENDER_INTENTS := true
TARGET_USES_DRM_PP := true
TARGET_USES_GRALLOC1 := true
TARGET_USES_HWC2 := true
TARGET_USES_ION := true

# HIDL
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += \
$(VENDOR_PATH)/oneplus_vendor_framework_compatibility_matrix.xml
$(VENDOR_PATH)/configs/vintf/oneplus_vendor_framework_compatibility_matrix.xml

DEVICE_MATRIX_FILE += device/qcom/common/compatibility_matrix.xml

DEVICE_MANIFEST_FILE += $(VENDOR_PATH)/manifest.xml
ODM_MANIFEST_FILES += $(VENDOR_PATH)/manifest-qva.xml
DEVICE_MANIFEST_FILE += $(VENDOR_PATH)/configs/vintf/manifest.xml
ODM_MANIFEST_FILES += $(VENDOR_PATH)/configs/vintf/manifest-qva.xml

# Init
TARGET_INIT_VENDOR_LIB := //$(VENDOR_PATH):libinit_oneplus-sm8150
Expand All @@ -115,9 +86,6 @@ BOARD_INCLUDE_RECOVERY_DTBO := true
TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
TARGET_USERIMAGES_USE_F2FS := true

# Security patch level
VENDOR_SECURITY_PATCH := 2021-05-01

BOARD_VENDOR_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy/vendor
PRODUCT_PRIVATE_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy/private
PRODUCT_PUBLIC_SEPOLICY_DIRS += $(VENDOR_PATH)/sepolicy/public
Expand Down
Loading

0 comments on commit c719aae

Please sign in to comment.