This repository has been archived by the owner on Mar 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Android.mk
46 lines (40 loc) · 1.72 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# Copyright (C) 2021 The LineageOS 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),merlin)
include $(call all-makefiles-under,$(LOCAL_PATH))
include $(CLEAR_VARS)
VENDOR_SYMLINKS := \
$(TARGET_OUT_VENDOR) \
$(TARGET_OUT_VENDOR)/lib/hw \
$(TARGET_OUT_VENDOR)/lib64/hw
$(VENDOR_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
$(hide) echo "Making vendor symlinks"
@ln -sf /mnt/vendor/cust $(TARGET_OUT_VENDOR)/cust
@ln -sf /mnt/vendor/nvcfg $(TARGET_OUT_VENDOR)/nvcfg
@ln -sf /mnt/vendor/nvdata $(TARGET_OUT_VENDOR)/nvdata
@ln -sf /mnt/vendor/persist $(TARGET_OUT_VENDOR)/persist
@ln -sf /mnt/vendor/protect_f $(TARGET_OUT_VENDOR)/protect_f
@ln -sf /mnt/vendor/protect_s $(TARGET_OUT_VENDOR)/protect_s
@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)/lib64/hw/gatekeeper.default.so
@ln -sf /vendor/lib/egl/libGLES_mali.so $(TARGET_OUT_VENDOR)/lib/hw/vulkan.mt6768.so
@ln -sf /vendor/lib64/egl/libGLES_mali.so $(TARGET_OUT_VENDOR)/lib64/hw/vulkan.mt6768.so
$(hide) touch $@
ALL_DEFAULT_INSTALLED_MODULES += $(VENDOR_SYMLINKS)
endif