xiaomi-elish: add module required to initramfs

This commit is contained in:
amazingfate 2023-10-26 14:11:49 +08:00 committed by Jianfeng Liu
parent bcc4da179c
commit b6139e1714

View File

@ -80,3 +80,12 @@ function post_family_tweaks_bsp__xiaomi-elish_bsp_firmware_in_initrd() {
FIRMWARE_HOOK
run_host_command_logged chmod -v +x "${file_added_to_bsp_destination}"
}
## Modules, required to boot, add them to initrd
function post_family_tweaks_bsp__xiaomi-elish_bsp_modules_in_initrd() {
display_alert "Adding to bsp-cli" "${BOARD}: modules in initrd" "info"
add_file_from_stdin_to_bsp_destination "/etc/initramfs-tools/modules" <<- 'EXTRA_MODULES'
spi-geni-qcom
nt36523_ts
EXTRA_MODULES
}