Files
device_oplus_mt6893-common/Android.mk
Kshitij Gupta deea571211 RMX3031: Add vendor symlinks
Signed-off-by: Himanshu Tyagi <himanshut567@gmail.com>
Change-Id: Idd3451ee65c821bd43ee65dbb8faa16140cf6c55
2022-10-28 01:54:57 +05:30

46 lines
1.7 KiB
Makefile

#
# Copyright (C) 2021 Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),RMX3031)
include $(call all-makefiles-under,$(LOCAL_PATH))
VENDOR_SYMLINKS := \
$(TARGET_OUT_VENDOR)/lib \
$(TARGET_OUT_VENDOR)/lib64 \
$(TARGET_OUT_VENDOR)/lib/hw \
$(TARGET_OUT_VENDOR)/lib64/hw \
$(VENDOR_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
$(hide) echo "Making vendor symlinks"
@mkdir -p $(TARGET_OUT_VENDOR)/lib/hw
@mkdir -p $(TARGET_OUT_VENDOR)/lib64/hw
@ln -sf libSoftGatekeeper.so $(TARGET_OUT_VENDOR)/lib/hw/gatekeeper.default.so
@ln -sf libSoftGatekeeper.so $(TARGET_OUT_VENDOR)/lib/hw/gatekeeper.default.so
@ln -sf libMcGatekeeper.so $(TARGET_OUT_VENDOR)/lib64/hw/gatekeeper.trustonic.so
@ln -sf libMcGatekeeper.so $(TARGET_OUT_VENDOR)/lib/hw/gatekeeper.trustonic.so
@ln -sf kmsetkey.trustonic.so $(TARGET_OUT_VENDOR)/lib/hw/kmsetkey.trustonic.so
@ln -sf kmsetkey.trustonic.so $(TARGET_OUT_VENDOR)/lib64/hw/kmsetkey.trustonic.so
@ln -sf /vendor/lib/egl/libGLES_mali.so $(TARGET_OUT_VENDOR)/lib/hw/vulkan.mt6893.so
@ln -sf /vendor/lib64/egl/libGLES_mali.so $(TARGET_OUT_VENDOR)/lib64/hw/vulkan.mt6893.so
$(hide) touch $@
ALL_DEFAULT_INSTALLED_MODULES += $(VENDOR_SYMLINKS)
endif