sm8550-common: Initial common device tree conversion

Change-Id: I059670b0797fd3ea45f419612dd2b39ee81bf716
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
This commit is contained in:
chandu078
2023-03-01 10:31:23 +01:00
parent 09c61ac8dd
commit dcbf38fe25
6 changed files with 21 additions and 21 deletions

View File

@@ -1,12 +1,12 @@
#
# Copyright (C) 2021-2022 The LineageOS Project
# Copyright (C) 2021-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
LOCAL_PATH := $(call my-dir)
ifneq ($(filter lemonade lemonadep,$(TARGET_DEVICE)),)
ifneq ($(filter salami,$(TARGET_DEVICE)),)
include $(call all-makefiles-under,$(LOCAL_PATH))
include $(CLEAR_VARS)

View File

@@ -7,7 +7,7 @@
BUILD_BROKEN_DUP_RULES := true
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
COMMON_PATH := device/oneplus/sm8350-common
COMMON_PATH := device/oneplus/sm8550-common
# A/B
AB_OTA_UPDATER := true
@@ -55,7 +55,7 @@ BOARD_SUPPORTS_SOUND_TRIGGER := true
BOARD_USES_ALSA_AUDIO := true
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := lahaina
TARGET_BOOTLOADER_BOARD_NAME := kalama
# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(COMMON_PATH)/bluetooth/include
@@ -105,8 +105,8 @@ BOARD_KERNEL_PAGESIZE := 4096
BOARD_KERNEL_SEPARATED_DTBO := true
BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION)
BOARD_RAMDISK_USE_LZ4 := true
TARGET_KERNEL_SOURCE := kernel/oneplus/sm8350
TARGET_KERNEL_CONFIG := vendor/lahaina-qgki_defconfig
TARGET_KERNEL_SOURCE := kernel/oneplus/sm8550
TARGET_KERNEL_CONFIG := vendor/kalama-qgki_defconfig
TARGET_KERNEL_NO_GCC := true
# Kernel modules
@@ -118,7 +118,7 @@ TARGET_MODULE_ALIASES += wlan.ko:qca_cld3_wlan.ko
# Platform
BOARD_USES_QCOM_HARDWARE := true
TARGET_BOARD_PLATFORM := lahaina
TARGET_BOARD_PLATFORM := kalama
# Metadata
BOARD_USES_METADATA_PARTITION := true
@@ -224,4 +224,4 @@ WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true
WPA_SUPPLICANT_VERSION := VER_0_8_X
# Include the proprietary files BoardConfig.
include vendor/oneplus/sm8350-common/BoardConfigVendor.mk
include vendor/oneplus/sm8550-common/BoardConfigVendor.mk

View File

@@ -1,5 +1,5 @@
#
# Copyright (C) 2021-2022 The LineageOS Project
# Copyright (C) 2021-2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -48,7 +48,7 @@ PRODUCT_PACKAGES += \
android.hardware.bluetooth.audio@2.1-impl \
android.hardware.soundtrigger@2.3-impl \
audio.bluetooth.default \
audio.primary.lahaina \
audio.primary.kalama \
audio.r_submix.default \
audio.usb.default \
audioadsprpcd \
@@ -66,16 +66,16 @@ PRODUCT_PACKAGES += \
libssrec \
libstdc++.vendor \
libvolumelistener \
sound_trigger.primary.lahaina:32
sound_trigger.primary.kalama:32
AUDIO_HAL_DIR := hardware/qcom-caf/sm8350/audio
AUDIO_HAL_DIR := hardware/qcom-caf/sm8550/audio
PRODUCT_COPY_FILES += \
$(AUDIO_HAL_DIR)/configs/common/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
$(AUDIO_HAL_DIR)/configs/lahaina/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
$(AUDIO_HAL_DIR)/configs/lahaina/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_lahaina/audio_platform_info.xml \
$(AUDIO_HAL_DIR)/configs/lahaina/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
$(LOCAL_PATH)/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_lahaina/audio_io_policy.conf \
$(AUDIO_HAL_DIR)/configs/kalama/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
$(AUDIO_HAL_DIR)/configs/kalama/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/audio_platform_info.xml \
$(AUDIO_HAL_DIR)/configs/kalama/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
$(LOCAL_PATH)/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/audio_io_policy.conf \
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml \
$(LOCAL_PATH)/audio/audio_policy_configuration_a2dp_offload_disabled.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_a2dp_offload_disabled.xml \
$(LOCAL_PATH)/audio/bluetooth_hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_hearing_aid_audio_policy_configuration.xml
@@ -486,4 +486,4 @@ PRODUCT_BOOT_JARS += \
WfdCommon
# Inherit from the proprietary files makefile.
$(call inherit-product, vendor/oneplus/sm8350-common/sm8350-common-vendor.mk)
$(call inherit-product, vendor/oneplus/sm8550-common/sm8550-common-vendor.mk)

View File

@@ -69,7 +69,7 @@ function blob_fixup() {
system_ext/lib64/libwfdnative.so)
sed -i "s/android.hidl.base@1.0.so/libhidlbase.so\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00/" "${2}"
;;
vendor/etc/media_lahaina/video_system_specs.json)
vendor/etc/media_kalama/video_system_specs.json)
sed -i "/max_retry_alloc_output_timeout/ s/1000/0/" "${2}"
;;
vendor/lib/libgui1_vendor.so)

View File

@@ -4,7 +4,7 @@
"target_path": "hardware/oplus"
},
{
"repository": "android_kernel_oneplus_sm8350",
"target_path": "kernel/oneplus/sm8350"
"repository": "android_kernel_oneplus_sm8550",
"target_path": "kernel/oneplus/sm8550"
}
]

View File

@@ -25,7 +25,7 @@ source "${HELPER}"
setup_vendor "${DEVICE_COMMON}" "${VENDOR_COMMON:-$VENDOR}" "${ANDROID_ROOT}" true
# Warning headers and guards
write_headers "lemonade lemonadep"
write_headers "salami"
# The standard common blobs
write_makefiles "${MY_DIR}/proprietary-files.txt" true