land: Create RFS symlinks
Change-Id: I45cf85d98145fe30979769f392ea09320e2e287f
This commit is contained in:
parent
77fe36d6c9
commit
c9f6f68652
2 changed files with 70 additions and 0 deletions
11
Android.mk
11
Android.mk
|
@ -14,6 +14,15 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
# This contains the module build definitions for the hardware-specific
|
||||
# components for this device.
|
||||
#
|
||||
# As much as possible, those components should be built unconditionally,
|
||||
# with device-specific names to avoid collisions, to avoid device-specific
|
||||
# bitrot and build breakages. Building a component unconditionally does
|
||||
# *not* include it on all devices, so it is safe even with hardware-specific
|
||||
# components.
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
ifeq ($(TARGET_DEVICE),land)
|
||||
|
@ -60,4 +69,6 @@ $(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
|||
|
||||
ALL_DEFAULT_INSTALLED_MODULES += $(IMS_SYMLINKS)
|
||||
|
||||
include device/xiaomi/land/tftp.mk
|
||||
|
||||
endif
|
||||
|
|
59
tftp.mk
Normal file
59
tftp.mk
Normal file
|
@ -0,0 +1,59 @@
|
|||
#########################################################################
|
||||
# Create Folder Structure
|
||||
#########################################################################
|
||||
|
||||
$(shell rm -rf $(TARGET_OUT)/rfs/)
|
||||
|
||||
#########################################################################
|
||||
# MSM Folders
|
||||
#########################################################################
|
||||
$(shell mkdir -p $(TARGET_OUT)/rfs/msm/mpss/readonly)
|
||||
$(shell mkdir -p $(TARGET_OUT)/rfs/msm/adsp/readonly)
|
||||
|
||||
$(shell ln -s /data/tombstones/modem $(TARGET_OUT)/rfs/msm/mpss/ramdumps)
|
||||
$(shell ln -s /persist/rfs/msm/mpss $(TARGET_OUT)/rfs/msm/mpss/readwrite)
|
||||
$(shell ln -s /persist/rfs/shared $(TARGET_OUT)/rfs/msm/mpss/shared)
|
||||
$(shell ln -s /persist/hlos_rfs/shared $(TARGET_OUT)/rfs/msm/mpss/hlos)
|
||||
$(shell ln -s /firmware $(TARGET_OUT)/rfs/msm/mpss/readonly/firmware)
|
||||
|
||||
$(shell ln -s /data/tombstones/lpass $(TARGET_OUT)/rfs/msm/adsp/ramdumps)
|
||||
$(shell ln -s /persist/rfs/msm/adsp $(TARGET_OUT)/rfs/msm/adsp/readwrite)
|
||||
$(shell ln -s /persist/rfs/shared $(TARGET_OUT)/rfs/msm/adsp/shared)
|
||||
$(shell ln -s /persist/hlos_rfs/shared $(TARGET_OUT)/rfs/msm/adsp/hlos)
|
||||
$(shell ln -s /firmware $(TARGET_OUT)/rfs/msm/adsp/readonly/firmware)
|
||||
|
||||
#########################################################################
|
||||
# MDM Folders
|
||||
#########################################################################
|
||||
$(shell mkdir -p $(TARGET_OUT)/rfs/mdm/mpss/readonly)
|
||||
$(shell mkdir -p $(TARGET_OUT)/rfs/mdm/adsp/readonly)
|
||||
$(shell mkdir -p $(TARGET_OUT)/rfs/mdm/sparrow/readonly)
|
||||
|
||||
$(shell ln -s /data/tombstones/modem $(TARGET_OUT)/rfs/mdm/mpss/ramdumps)
|
||||
$(shell ln -s /persist/rfs/mdm/mpss $(TARGET_OUT)/rfs/mdm/mpss/readwrite)
|
||||
$(shell ln -s /persist/rfs/shared $(TARGET_OUT)/rfs/mdm/mpss/shared)
|
||||
$(shell ln -s /persist/hlos_rfs/shared $(TARGET_OUT)/rfs/mdm/mpss/hlos)
|
||||
$(shell ln -s /firmware $(TARGET_OUT)/rfs/mdm/mpss/readonly/firmware)
|
||||
|
||||
$(shell ln -s /data/tombstones/lpass $(TARGET_OUT)/rfs/mdm/adsp/ramdumps)
|
||||
$(shell ln -s /persist/rfs/mdm/adsp $(TARGET_OUT)/rfs/mdm/adsp/readwrite)
|
||||
$(shell ln -s /persist/rfs/shared $(TARGET_OUT)/rfs/mdm/adsp/shared)
|
||||
$(shell ln -s /persist/hlos_rfs/shared $(TARGET_OUT)/rfs/mdm/adsp/hlos)
|
||||
$(shell ln -s /firmware $(TARGET_OUT)/rfs/mdm/adsp/readonly/firmware)
|
||||
|
||||
$(shell ln -s /data/tombstones/sparrow $(TARGET_OUT)/rfs/mdm/sparrow/ramdumps)
|
||||
$(shell ln -s /persist/rfs/mdm/sparrow $(TARGET_OUT)/rfs/mdm/sparrow/readwrite)
|
||||
$(shell ln -s /persist/rfs/shared $(TARGET_OUT)/rfs/mdm/sparrow/shared)
|
||||
$(shell ln -s /persist/hlos_rfs/shared $(TARGET_OUT)/rfs/mdm/sparrow/hlos)
|
||||
$(shell ln -s /firmware $(TARGET_OUT)/rfs/mdm/sparrow/readonly/firmware)
|
||||
|
||||
#########################################################################
|
||||
# APQ Folders
|
||||
#########################################################################
|
||||
$(shell mkdir -p $(TARGET_OUT)/rfs/apq/gnss/readonly)
|
||||
|
||||
$(shell ln -s /data/tombstones/modem $(TARGET_OUT)/rfs/apq/gnss/ramdumps)
|
||||
$(shell ln -s /persist/rfs/apq/gnss $(TARGET_OUT)/rfs/apq/gnss/readwrite)
|
||||
$(shell ln -s /persist/rfs/shared $(TARGET_OUT)/rfs/apq/gnss/shared)
|
||||
$(shell ln -s /persist/hlos_rfs/shared $(TARGET_OUT)/rfs/apq/gnss/hlos)
|
||||
$(shell ln -s /firmware $(TARGET_OUT)/rfs/apq/gnss/readonly/firmware)
|
Loading…
Reference in a new issue