blob: 9f1c7b2055a15d19c5478aa4cd88d4fce8e5722e [file] [log] [blame]
merothh54856102021-11-04 12:07:41 +05301#
2# Copyright (C) 2021 The LineageOS Project
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7LOCAL_PATH := $(call my-dir)
8
9ifeq ($(TARGET_DEVICE),FP4)
10include $(call all-makefiles-under,$(LOCAL_PATH))
Ameya Thakurac5b3e02016-09-26 12:07:36 -070011
12include $(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.
16FIRMWARE_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
21BT_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
26DSP_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
31ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT)
32
Bruno Martins3a16ecd2019-03-14 10:56:21 +010033RFS_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
45RFS_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
57RFS_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
69RFS_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
81RFS_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
93ALL_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 Martinseb473392019-02-22 19:44:24 +000095WIFI_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
101ALL_DEFAULT_INSTALLED_MODULES += $(WIFI_FIRMWARE_SYMLINKS)
102
merothh54856102021-11-04 12:07:41 +0530103endif