sdm660-common: Create a symlink to the msadp partition in vendor/etc

The msadp partition contents can now be loaded via request_firmware.
Without this change the msadp image was not picked up during modem
loading

[jmpfbmx]: It fixes:
ueventd : firmware: loading 'msadp' for '/devices/soc/4080000.qcom,mss/firmware/msadp'
ueventd : firmware: could not find firmware for msadp
ueventd : firmware: attempted /etc/firmware/msadp, open failed: No such file or directory
ueventd : firmware: attempted /odm/firmware/msadp, open failed: No such file or directory
ueventd : firmware: attempted /vendor/firmware/msadp, open failed: No such file or directory
ueventd : firmware: attempted /firmware/image/msadp, open failed: No such file or directory
ueventd : firmware: attempted /vendor/firmware_mnt/image/msadp, open failed: No such file or directory

Change-Id: I4d99b56e0e151169b44839c299156878474857cd
Signed-off-by: jmpfbmx <jmpf.bmx@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
Shibin George 2021-11-06 20:13:43 +08:00 committed by pix106
parent aebec3317f
commit be4a36062b

View file

@ -142,6 +142,11 @@ $(METADATA_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
ALL_DEFAULT_INSTALLED_MODULES += $(METADATA_SYMLINKS)
# Create symbolic links for msadp
$(shell mkdir -p $(TARGET_OUT_VENDOR)/firmware; \
ln -sf /dev/block/bootdevice/by-name/msadp \
$(TARGET_OUT_VENDOR)/firmware/msadp)
subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH))
$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk)))
endif