sm8350-common: Copy selected modules to recovery
Change-Id: Ic85408521bb5a2d40d9bfadff849c7b266b6f10d
This commit is contained in:
parent
1c1195097b
commit
4c99525ebc
1 changed files with 15 additions and 0 deletions
15
Android.mk
15
Android.mk
|
@ -15,6 +15,7 @@
|
|||
#
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
COMMON_PATH := $(LOCAL_PATH)
|
||||
|
||||
ifneq ($(filter lemonade lemonadep,$(TARGET_DEVICE)),)
|
||||
subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH))
|
||||
|
@ -96,5 +97,19 @@ $(WIFI_FIRMWARE_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
|||
$(hide) ln -sf /mnt/vendor/persist/WCNSS_qcom_cfg.ini $@/WCNSS_qcom_cfg.ini
|
||||
$(hide) ln -sf /mnt/vendor/persist/wlan_mac.bin $@/wlan_mac.bin
|
||||
|
||||
VENDOR_RAMDISK_KERNEL_MODULES_LIST := $(strip $(shell cat $(COMMON_PATH)/modules.load.recovery))
|
||||
VENDOR_RAMDISK_KERNEL_MODULES := $(VENDOR_RAMDISK_KERNEL_MODULES_LIST:%=$(TARGET_VENDOR_RAMDISK_OUT)/lib/modules/%)
|
||||
|
||||
INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel
|
||||
INTERNAL_VENDOR_RAMDISK_TARGET := $(call intermediates-dir-for,PACKAGING,vendor-boot)/vendor-ramdisk.cpio.gz
|
||||
$(VENDOR_RAMDISK_KERNEL_MODULES): $(INSTALLED_KERNEL_TARGET)
|
||||
@echo "Copying kernel modules to vendor ramdisk: $@"
|
||||
@mkdir -p $(dir $@)
|
||||
cp $(@F:%=$(TARGET_OUT_VENDOR)/lib/modules/%) $(TARGET_VENDOR_RAMDISK_OUT)/lib/modules/
|
||||
cp $(TARGET_OUT_VENDOR)/lib/modules/modules.dep $(TARGET_VENDOR_RAMDISK_OUT)/lib/modules/
|
||||
sed -i "s/\/vendor//g" $(TARGET_VENDOR_RAMDISK_OUT)/lib/modules/modules.dep
|
||||
|
||||
$(INTERNAL_VENDOR_RAMDISK_TARGET): $(VENDOR_RAMDISK_KERNEL_MODULES)
|
||||
|
||||
ALL_DEFAULT_INSTALLED_MODULES += $(RFS_MDM_ADSP_SYMLINKS) $(RFS_MDM_CDSP_SYMLINKS) $(RFS_MDM_MPSS_SYMLINKS) $(RFS_MDM_SLPI_SYMLINKS) $(WIFI_FIRMWARE_SYMLINKS)
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue