2023-10-13 11:44:49 -07:00
|
|
|
#
|
|
|
|
# Copyright (C) 2023 The LineageOS Project
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
ifeq ($(TARGET_DEVICE),X6833B)
|
2023-12-06 19:50:54 -08:00
|
|
|
|
2023-10-13 11:44:49 -07:00
|
|
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|
2023-12-06 19:50:54 -08:00
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2023-12-07 08:17:56 -08:00
|
|
|
AUDIO_SYMLINKS := \
|
|
|
|
$(TARGET_OUT_VENDOR)/lib/hw/audio.primary.$(TARGET_BOARD_PLATFORM).so \
|
|
|
|
$(TARGET_OUT_VENDOR)/lib/hw/audio.r_submix.$(TARGET_BOARD_PLATFORM).so \
|
|
|
|
$(TARGET_OUT_VENDOR)/lib64/hw/audio.primary.$(TARGET_BOARD_PLATFORM).so \
|
|
|
|
$(TARGET_OUT_VENDOR)/lib64/hw/audio.r_submix.$(TARGET_BOARD_PLATFORM).so
|
|
|
|
|
|
|
|
|
|
|
|
$(AUDIO_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
|
|
|
$(hide) echo "Linking $@"
|
|
|
|
@ln -sf $(subst $(TARGET_BOARD_PLATFORM),mediatek,$(notdir $@)) $@
|
|
|
|
|
2023-12-06 19:50:54 -08:00
|
|
|
DISPLAY_SYMLINKS := \
|
|
|
|
$(TARGET_OUT_VENDOR)/bin/hw/android.hardware.graphics.allocator@4.0-service-mediatek
|
|
|
|
|
|
|
|
$(DISPLAY_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
|
|
|
$(hide) echo "Linking $@"
|
|
|
|
@ln -sf $(TARGET_BOARD_PLATFORM)/$(notdir $@).$(TARGET_BOARD_PLATFORM) $@
|
|
|
|
|
2023-12-07 17:18:11 -08:00
|
|
|
GATEKEEPER_SYMLINKS := \
|
|
|
|
$(TARGET_OUT_VENDOR)/lib/hw/gatekeeper.trustonic.so \
|
|
|
|
$(TARGET_OUT_VENDOR)/lib64/hw/gatekeeper.trustonic.so
|
|
|
|
|
|
|
|
$(GATEKEEPER_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
|
|
|
$(hide) echo "Linking $@"
|
|
|
|
@ln -sf libMcGatekeeper.so $@
|
|
|
|
|
2023-12-08 10:05:51 -08:00
|
|
|
KEYMASTER_SYMLINKS := \
|
|
|
|
$(TARGET_OUT_VENDOR)/lib/hw/kmsetkey.default.so \
|
|
|
|
$(TARGET_OUT_VENDOR)/lib64/hw/kmsetkey.default.so
|
|
|
|
|
|
|
|
$(KEYMASTER_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
|
|
|
$(hide) echo "Linking $@"
|
|
|
|
@ln -sf $(subst default,trustonic,$(notdir $@)) $@
|
|
|
|
|
2023-12-09 01:54:57 -08:00
|
|
|
SENSOR_SYMLINKS := $(TARGET_OUT_VENDOR)/lib64/hw/sensors.$(TARGET_BOARD_PLATFORM).so
|
|
|
|
$(SENSOR_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
|
|
|
$(hide) echo "Linking $(notdir $@)"
|
|
|
|
@ln -sf sensors.mediatek.V2.0.so $@
|
|
|
|
|
2023-12-06 19:50:54 -08:00
|
|
|
VENDOR_PLATFORM_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/, $(strip $(shell cat $(DEVICE_PATH)/symlink/vendor.txt)))
|
|
|
|
$(VENDOR_PLATFORM_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
|
|
|
$(hide) echo "Linking $(notdir $@)"
|
|
|
|
@ln -sf $(TARGET_BOARD_PLATFORM)/$(notdir $@) $@
|
|
|
|
|
|
|
|
ALL_DEFAULT_INSTALLED_MODULES += \
|
2023-12-07 08:17:56 -08:00
|
|
|
$(AUDIO_SYMLINKS) \
|
2023-12-06 19:50:54 -08:00
|
|
|
$(DISPLAY_SYMLINKS) \
|
2023-12-07 17:18:11 -08:00
|
|
|
$(GATEKEEPER_SYMLINKS) \
|
2023-12-08 10:05:51 -08:00
|
|
|
$(KEYMASTER_SYMLINKS) \
|
2023-12-09 01:54:57 -08:00
|
|
|
$(SENSOR_SYMLINKS) \
|
2023-12-06 19:50:54 -08:00
|
|
|
$(VENDOR_PLATFORM_SYMLINKS)
|
|
|
|
|
2023-10-13 11:44:49 -07:00
|
|
|
endif
|