merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2021 The LineageOS Project |
| 3 | # |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | # |
| 6 | |
| 7 | LOCAL_PATH := $(call my-dir) |
| 8 | |
| 9 | ifeq ($(TARGET_DEVICE),FP4) |
| 10 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
Ameya Thakur | ac5b3e0 | 2016-09-26 12:07:36 -0700 | [diff] [blame] | 11 | |
| 12 | include $(CLEAR_VARS) |
| 13 | |
| 14 | # A/B builds require us to create the mount points at compile time. |
| 15 | # Just creating it for all cases since it does not hurt. |
| 16 | FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware_mnt |
| 17 | $(FIRMWARE_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE) |
| 18 | @echo "Creating $(FIRMWARE_MOUNT_POINT)" |
| 19 | @mkdir -p $(TARGET_OUT_VENDOR)/firmware_mnt |
| 20 | |
| 21 | BT_FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/bt_firmware |
| 22 | $(BT_FIRMWARE_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE) |
| 23 | @echo "Creating $(BT_FIRMWARE_MOUNT_POINT)" |
| 24 | @mkdir -p $(TARGET_OUT_VENDOR)/bt_firmware |
| 25 | |
| 26 | DSP_MOUNT_POINT := $(TARGET_OUT_VENDOR)/dsp |
| 27 | $(DSP_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE) |
| 28 | @echo "Creating $(DSP_MOUNT_POINT)" |
| 29 | @mkdir -p $(TARGET_OUT_VENDOR)/dsp |
| 30 | |
| 31 | ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT) |
| 32 | |
Bruno Martins | 3a16ecd | 2019-03-14 10:56:21 +0100 | [diff] [blame] | 33 | RFS_MSM_ADSP_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/adsp/ |
| 34 | $(RFS_MSM_ADSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE) |
| 35 | @echo "Creating RFS MSM ADSP folder structure: $@" |
| 36 | @rm -rf $@/* |
| 37 | @mkdir -p $(dir $@)/readonly/vendor |
| 38 | $(hide) ln -sf /data/vendor/tombstones/rfs/lpass $@/ramdumps |
| 39 | $(hide) ln -sf /mnt/vendor/persist/rfs/msm/adsp $@/readwrite |
| 40 | $(hide) ln -sf /mnt/vendor/persist/rfs/shared $@/shared |
| 41 | $(hide) ln -sf /mnt/vendor/persist/hlos_rfs/shared $@/hlos |
| 42 | $(hide) ln -sf /vendor/firmware_mnt $@/readonly/firmware |
| 43 | $(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware |
| 44 | |
| 45 | RFS_MSM_CDSP_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/cdsp/ |
| 46 | $(RFS_MSM_CDSP_SYMLINKS): $(LOCAL_INSTALLED_MODULE) |
| 47 | @echo "Creating RFS MSM CDSP folder structure: $@" |
| 48 | @rm -rf $@/* |
| 49 | @mkdir -p $(dir $@)/readonly/vendor |
| 50 | $(hide) ln -sf /data/vendor/tombstones/rfs/cdsp $@/ramdumps |
| 51 | $(hide) ln -sf /mnt/vendor/persist/rfs/msm/cdsp $@/readwrite |
| 52 | $(hide) ln -sf /mnt/vendor/persist/rfs/shared $@/shared |
| 53 | $(hide) ln -sf /mnt/vendor/persist/hlos_rfs/shared $@/hlos |
| 54 | $(hide) ln -sf /vendor/firmware_mnt $@/readonly/firmware |
| 55 | $(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware |
| 56 | |
| 57 | RFS_MSM_MPSS_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/mpss/ |
| 58 | $(RFS_MSM_MPSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE) |
| 59 | @echo "Creating RFS MSM MPSS folder structure: $@" |
| 60 | @rm -rf $@/* |
| 61 | @mkdir -p $(dir $@)/readonly/vendor |
| 62 | $(hide) ln -sf /data/vendor/tombstones/rfs/modem $@/ramdumps |
| 63 | $(hide) ln -sf /mnt/vendor/persist/rfs/msm/mpss $@/readwrite |
| 64 | $(hide) ln -sf /mnt/vendor/persist/rfs/shared $@/shared |
| 65 | $(hide) ln -sf /mnt/vendor/persist/hlos_rfs/shared $@/hlos |
| 66 | $(hide) ln -sf /vendor/firmware_mnt $@/readonly/firmware |
| 67 | $(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware |
| 68 | |
| 69 | RFS_MSM_SLPI_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/slpi/ |
| 70 | $(RFS_MSM_SLPI_SYMLINKS): $(LOCAL_INSTALLED_MODULE) |
| 71 | @echo "Creating RFS MSM SLPI folder structure: $@" |
| 72 | @rm -rf $@/* |
| 73 | @mkdir -p $(dir $@)/readonly/vendor |
| 74 | $(hide) ln -sf /data/vendor/tombstones/rfs/slpi $@/ramdumps |
| 75 | $(hide) ln -sf /mnt/vendor/persist/rfs/msm/slpi $@/readwrite |
| 76 | $(hide) ln -sf /mnt/vendor/persist/rfs/shared $@/shared |
| 77 | $(hide) ln -sf /mnt/vendor/persist/hlos_rfs/shared $@/hlos |
| 78 | $(hide) ln -sf /vendor/firmware_mnt $@/readonly/firmware |
| 79 | $(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware |
| 80 | |
| 81 | RFS_MSM_WPSS_SYMLINKS := $(TARGET_OUT_VENDOR)/rfs/msm/wpss/ |
| 82 | $(RFS_MSM_WPSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE) |
| 83 | @echo "Creating RFS MSM WPSS folder structure: $@" |
| 84 | @rm -rf $@/* |
| 85 | @mkdir -p $(dir $@)/readonly/vendor |
| 86 | $(hide) ln -sf /data/vendor/tombstones/rfs/wpss $@/ramdumps |
| 87 | $(hide) ln -sf /mnt/vendor/persist/rfs/msm/wpss $@/readwrite |
| 88 | $(hide) ln -sf /mnt/vendor/persist/rfs/shared $@/shared |
| 89 | $(hide) ln -sf /mnt/vendor/persist/hlos_rfs/shared $@/hlos |
| 90 | $(hide) ln -sf /vendor/firmware_mnt $@/readonly/firmware |
| 91 | $(hide) ln -sf /vendor/firmware $@/readonly/vendor/firmware |
| 92 | |
| 93 | ALL_DEFAULT_INSTALLED_MODULES += $(RFS_MSM_ADSP_SYMLINKS) $(RFS_MSM_CDSP_SYMLINKS) $(RFS_MSM_MPSS_SYMLINKS) $(RFS_MSM_SLPI_SYMLINKS) $(RFS_MSM_WPSS_SYMLINKS) |
| 94 | |
Bruno Martins | eb47339 | 2019-02-22 19:44:24 +0000 | [diff] [blame] | 95 | WIFI_FIRMWARE_SYMLINKS := $(TARGET_OUT_VENDOR)/firmware/wlan/qca_cld |
| 96 | $(WIFI_FIRMWARE_SYMLINKS): $(LOCAL_INSTALLED_MODULE) |
| 97 | @echo "Creating wifi firmware symlinks: $@" |
| 98 | @mkdir -p $@ |
| 99 | $(hide) ln -sf /vendor/etc/wifi/WCNSS_qcom_cfg.ini $@/WCNSS_qcom_cfg.ini |
| 100 | |
| 101 | ALL_DEFAULT_INSTALLED_MODULES += $(WIFI_FIRMWARE_SYMLINKS) |
| 102 | |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 103 | endif |