diff --git a/BoardConfig.mk b/BoardConfig.mk index b72b721..a4a6dff 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -4,7 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 # -# Inherit from oneplus sm8250-common +# Include the common OEM chipset BoardConfig. -include device/oneplus/sm8250-common/BoardConfigCommon.mk DEVICE_PATH := device/oneplus/kebab @@ -34,5 +34,5 @@ BOARD_SUPER_PARTITION_SIZE := 7516192768 TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/init/fstab.qcom TARGET_RECOVERY_UI_MARGIN_HEIGHT := 103 -# inherit from the proprietary version +# Include the proprietary files BoardConfig. -include vendor/oneplus/kebab/BoardConfigVendor.mk diff --git a/device.mk b/device.mk index fcafb7c..e6deb8c 100644 --- a/device.mk +++ b/device.mk @@ -4,40 +4,41 @@ # SPDX-License-Identifier: Apache-2.0 # -# Enable virtual A/B OTA +# A/B $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk) +# AAPT +PRODUCT_AAPT_CONFIG := normal +PRODUCT_AAPT_PREF_CONFIG := xxhdpi + +# Audio +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml + +# Boot animation +TARGET_SCREEN_HEIGHT := 2400 +TARGET_SCREEN_WIDTH := 1080 + +# Device init scripts +PRODUCT_PACKAGES += \ + fstab.qcom \ + fstab.qcom.ramdisk + # Overlays PRODUCT_PACKAGES += \ OPlusFrameworksResTarget \ OPlusSettingsProviderResTarget \ OPlusSystemUIResTarget -# Device uses high-density artwork where available -PRODUCT_AAPT_CONFIG := normal -PRODUCT_AAPT_PREF_CONFIG := xxhdpi - -# Boot animation -TARGET_SCREEN_HEIGHT := 2400 -TARGET_SCREEN_WIDTH := 1080 - -# Audio -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml - -# Device init scripts -PRODUCT_PACKAGES += \ - fstab.qcom \ - fstab.qcom.ramdisk +# Shipping API +PRODUCT_SHIPPING_API_LEVEL := 30 # Soong namespaces PRODUCT_SOONG_NAMESPACES += \ $(LOCAL_PATH) -PRODUCT_SHIPPING_API_LEVEL := 30 - -# Inherit from oneplus sm8250-common +# Inherit from the common OEM chipset makefile. $(call inherit-product, device/oneplus/sm8250-common/common.mk) -# Inherit from vendor blobs +# Inherit from the proprietary files makefile. $(call inherit-product, vendor/oneplus/kebab/kebab-vendor.mk)