blob: c6ddc8f660f4308f4296d7efba5a7ed469dd4345 [file] [log] [blame]
merothh54856102021-11-04 12:07:41 +05301#
Michael Bestas4e1ba2f2024-05-12 06:38:39 +03002# SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
merothh54856102021-11-04 12:07:41 +05303# SPDX-License-Identifier: Apache-2.0
4#
5
6LOCAL_PATH := $(call my-dir)
7
Michael Bestas10374532023-08-29 19:41:38 +03008ifeq ($(TARGET_DEVICE),FP5)
merothh54856102021-11-04 12:07:41 +05309include $(call all-makefiles-under,$(LOCAL_PATH))
Ameya Thakurac5b3e02016-09-26 12:07:36 -070010
11include $(CLEAR_VARS)
12
13# A/B builds require us to create the mount points at compile time.
14# Just creating it for all cases since it does not hurt.
15FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware_mnt
16$(FIRMWARE_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
17 @echo "Creating $(FIRMWARE_MOUNT_POINT)"
18 @mkdir -p $(TARGET_OUT_VENDOR)/firmware_mnt
19
20BT_FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/bt_firmware
21$(BT_FIRMWARE_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
22 @echo "Creating $(BT_FIRMWARE_MOUNT_POINT)"
23 @mkdir -p $(TARGET_OUT_VENDOR)/bt_firmware
24
25DSP_MOUNT_POINT := $(TARGET_OUT_VENDOR)/dsp
26$(DSP_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
27 @echo "Creating $(DSP_MOUNT_POINT)"
28 @mkdir -p $(TARGET_OUT_VENDOR)/dsp
29
30ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT)
31
Andrzej Perczak258cffe2021-09-05 17:35:52 +080032CNE_LIBS := libvndfwk_detect_jni.qti.so
33CNE_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR_APPS)/CneApp/lib/arm64/,$(notdir $(CNE_LIBS)))
34$(CNE_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
35 @echo "CNE lib link: $@"
36 @mkdir -p $(dir $@)
37 @rm -rf $@
38 $(hide) ln -sf /vendor/lib64/$(notdir $@) $@
39
Bruno Martins276cd0a2022-10-28 23:42:05 +010040IMS_LIBS := libimscamera_jni.so libimsmedia_jni.so
41IMS_SYMLINKS := $(addprefix $(TARGET_OUT_SYSTEM_EXT_APPS_PRIVILEGED)/ims/lib/arm64/,$(notdir $(IMS_LIBS)))
42$(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
43 @echo "IMS lib link: $@"
44 @mkdir -p $(dir $@)
45 @rm -rf $@
46 $(hide) ln -sf /system_ext/lib64/$(notdir $@) $@
47
Bruno Martins3a16ecd2019-03-14 10:56:21 +010048RFS_MSM_ADSP_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/adsp/
49$(RFS_MSM_ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
50 @echo "Creating RFS MSM ADSP folder structure: $@"
51 @rm -rf $@/*
52 @mkdir -p $(dir $@)/readonly/vendor
53 $(hide) ln -sf /data/vendor/tombstones/rfs/lpass $@/ramdumps
54 $(hide) ln -sf /mnt/vendor/persist/rfs/msm/adsp $@/readwrite
55 $(hide) ln -sf /mnt/vendor/persist/rfs/shared $@/shared
56 $(hide) ln -sf /mnt/vendor/persist/hlos_rfs/shared $@/hlos
57 $(hide) ln -sf /vendor/firmware_mnt $@/readonly/firmware
58 $(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware
59
60RFS_MSM_CDSP_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/cdsp/
61$(RFS_MSM_CDSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
62 @echo "Creating RFS MSM CDSP folder structure: $@"
63 @rm -rf $@/*
64 @mkdir -p $(dir $@)/readonly/vendor
65 $(hide) ln -sf /data/vendor/tombstones/rfs/cdsp $@/ramdumps
66 $(hide) ln -sf /mnt/vendor/persist/rfs/msm/cdsp $@/readwrite
67 $(hide) ln -sf /mnt/vendor/persist/rfs/shared $@/shared
68 $(hide) ln -sf /mnt/vendor/persist/hlos_rfs/shared $@/hlos
69 $(hide) ln -sf /vendor/firmware_mnt $@/readonly/firmware
70 $(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware
71
72RFS_MSM_MPSS_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/mpss/
73$(RFS_MSM_MPSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
74 @echo "Creating RFS MSM MPSS folder structure: $@"
75 @rm -rf $@/*
76 @mkdir -p $(dir $@)/readonly/vendor
77 $(hide) ln -sf /data/vendor/tombstones/rfs/modem $@/ramdumps
78 $(hide) ln -sf /mnt/vendor/persist/rfs/msm/mpss $@/readwrite
79 $(hide) ln -sf /mnt/vendor/persist/rfs/shared $@/shared
80 $(hide) ln -sf /mnt/vendor/persist/hlos_rfs/shared $@/hlos
81 $(hide) ln -sf /vendor/firmware_mnt $@/readonly/firmware
82 $(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware
83
84RFS_MSM_SLPI_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/slpi/
85$(RFS_MSM_SLPI_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
86 @echo "Creating RFS MSM SLPI folder structure: $@"
87 @rm -rf $@/*
88 @mkdir -p $(dir $@)/readonly/vendor
89 $(hide) ln -sf /data/vendor/tombstones/rfs/slpi $@/ramdumps
90 $(hide) ln -sf /mnt/vendor/persist/rfs/msm/slpi $@/readwrite
91 $(hide) ln -sf /mnt/vendor/persist/rfs/shared $@/shared
92 $(hide) ln -sf /mnt/vendor/persist/hlos_rfs/shared $@/hlos
93 $(hide) ln -sf /vendor/firmware_mnt $@/readonly/firmware
94 $(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware
95
96RFS_MSM_WPSS_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/wpss/
97$(RFS_MSM_WPSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
98 @echo "Creating RFS MSM WPSS folder structure: $@"
99 @rm -rf $@/*
100 @mkdir -p $(dir $@)/readonly/vendor
101 $(hide) ln -sf /data/vendor/tombstones/rfs/wpss $@/ramdumps
102 $(hide) ln -sf /mnt/vendor/persist/rfs/msm/wpss $@/readwrite
103 $(hide) ln -sf /mnt/vendor/persist/rfs/shared $@/shared
104 $(hide) ln -sf /mnt/vendor/persist/hlos_rfs/shared $@/hlos
105 $(hide) ln -sf /vendor/firmware_mnt $@/readonly/firmware
106 $(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware
107
Bruno Martinseb473392019-02-22 19:44:24 +0000108WIFI_FIRMWARE_SYMLINKS := $(TARGET_OUT_VENDOR)/firmware/wlan/qca_cld
109$(WIFI_FIRMWARE_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
110 @echo "Creating wifi firmware symlinks: $@"
111 @mkdir -p $@
112 $(hide) ln -sf /vendor/etc/wifi/WCNSS_qcom_cfg.ini $@/WCNSS_qcom_cfg.ini
113
Andrzej Perczak258cffe2021-09-05 17:35:52 +0800114ALL_DEFAULT_INSTALLED_MODULES += $(CNE_SYMLINKS) $(IMS_SYMLINKS) $(RFS_MSM_ADSP_SYMLINKS) $(RFS_MSM_CDSP_SYMLINKS) $(RFS_MSM_MPSS_SYMLINKS) $(RFS_MSM_SLPI_SYMLINKS) $(RFS_MSM_WPSS_SYMLINKS) $(WIFI_FIRMWARE_SYMLINKS)
merothh54856102021-11-04 12:07:41 +0530115endif