merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 1 | # |
Michael Bestas | 4e1ba2f | 2024-05-12 06:38:39 +0300 | [diff] [blame] | 2 | # SPDX-FileCopyrightText: 2021-2024 The LineageOS Project |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | # |
| 5 | |
| 6 | LOCAL_PATH := $(call my-dir) |
| 7 | |
Michael Bestas | 1037453 | 2023-08-29 19:41:38 +0300 | [diff] [blame] | 8 | ifeq ($(TARGET_DEVICE),FP5) |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 9 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
Ameya Thakur | ac5b3e0 | 2016-09-26 12:07:36 -0700 | [diff] [blame] | 10 | |
| 11 | include $(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. |
| 15 | FIRMWARE_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 | |
| 20 | BT_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 | |
| 25 | DSP_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 | |
| 30 | ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT) |
| 31 | |
Andrzej Perczak | 258cffe | 2021-09-05 17:35:52 +0800 | [diff] [blame] | 32 | CNE_LIBS := libvndfwk_detect_jni.qti.so |
| 33 | CNE_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 Martins | 276cd0a | 2022-10-28 23:42:05 +0100 | [diff] [blame] | 40 | IMS_LIBS := libimscamera_jni.so libimsmedia_jni.so |
| 41 | IMS_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 Martins | 3a16ecd | 2019-03-14 10:56:21 +0100 | [diff] [blame] | 48 | RFS_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 | |
| 60 | RFS_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 | |
| 72 | RFS_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 | |
| 84 | RFS_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 | |
| 96 | RFS_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 Martins | eb47339 | 2019-02-22 19:44:24 +0000 | [diff] [blame] | 108 | WIFI_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 Perczak | 258cffe | 2021-09-05 17:35:52 +0800 | [diff] [blame] | 114 | ALL_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) |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 115 | endif |