From 96b29f5dd64111b9d063a327e24247ced02c1427 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Tue, 19 Jun 2018 15:32:51 +0000 Subject: [PATCH] update-kernel: add additional firmware files --- update-kernel.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/update-kernel.in b/update-kernel.in index 0d20371..aaf1cff 100644 --- a/update-kernel.in +++ b/update-kernel.in @@ -251,8 +251,20 @@ mkdir -p $MODLOOP/modules/firmware find $ROOT/lib/modules -type f -name "*.ko" | xargs modinfo -F firmware | sort -u | while read FW; do if [ -e "$ROOT/lib/firmware/$FW" ]; then install -pD $ROOT/lib/firmware/$FW $MODLOOP/modules/firmware/$FW + # include nvram files if firmware is needed. + [ -e "$ROOT/lib/firmware/${FW%.*}.txt" ] && install -pD \ + $ROOT/lib/firmware/${FW%.*}.txt $MODLOOP/modules/firmware/${FW%.*}.txt fi done + +# include bluetooth firmware in modloop +if [ -d "$MODLOOP/modules/firmware/brcm" ]; then + for _btfw in "$ROOT"/lib/firmware/brcm/*.hcd; do + install -pD "$_btfw" \ + "$MODLOOP"/modules/firmware/brcm/"${_btfw##*/}" + done +fi + mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz -exit-on-error mkinitfs $MKINITFS_ARGS -q -b $ROOT -F "$features base squashfs" \ -- 2.17.1