-
Notifications
You must be signed in to change notification settings - Fork 8
/
Android.mk
61 lines (47 loc) · 1.87 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# Copyright (C) 2018-2024 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_DEVICE),Z01R)
include $(call all-makefiles-under,$(LOCAL_PATH))
include $(CLEAR_VARS)
# A/B builds require us to create the mount points at compile time.
# Just creating it for all cases since it does not hurt.
FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware_mnt
$(FIRMWARE_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
@echo "Creating $(FIRMWARE_MOUNT_POINT)"
@mkdir -p $(TARGET_OUT_VENDOR)/firmware_mnt
ADF_MOUNT_POINT := $(TARGET_OUT_VENDOR)/ADF
$(ADF_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
@echo "Creating $(ADF_MOUNT_POINT)"
@mkdir -p $(TARGET_OUT_VENDOR)/ADF
BT_FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/bt_firmware
$(BT_FIRMWARE_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
@echo "Creating $(BT_FIRMWARE_MOUNT_POINT)"
@mkdir -p $(TARGET_OUT_VENDOR)/bt_firmware
DSP_MOUNT_POINT := $(TARGET_OUT_VENDOR)/dsp
$(DSP_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
@echo "Creating $(DSP_MOUNT_POINT)"
@mkdir -p $(TARGET_OUT_VENDOR)/dsp
FACTORY_MOUNT_POINT := $(TARGET_OUT_VENDOR)/factory
$(FACTORY_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
@echo "Creating $(FACTORY_MOUNT_POINT)"
@mkdir -p $(TARGET_OUT_VENDOR)/factory
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(ADF_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT) $(FACTORY_MOUNT_POINT)
APD_MOUNT_SYMLINK := $(TARGET_OUT_VENDOR)/APD
$(APD_MOUNT_SYMLINK): $(LOCAL_INSTALLED_MODULE)
@echo "Creating APD mount symlink: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /APD $@
ALL_DEFAULT_INSTALLED_MODULES += $(APD_MOUNT_SYMLINK)
ASDF_MOUNT_SYMLINK := $(TARGET_OUT_VENDOR)/asdf
$(ASDF_MOUNT_SYMLINK): $(LOCAL_INSTALLED_MODULE)
@echo "Creating asdf mount symlink: $@"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf /asdf $@
ALL_DEFAULT_INSTALLED_MODULES += $(ASDF_MOUNT_SYMLINK)
endif