diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-06-19 15:32:51 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-06-19 15:32:51 +0000 |
commit | 96b29f5dd64111b9d063a327e24247ced02c1427 (patch) | |
tree | 5d7e906b6dd878e11dfbcad21dce4755f904bc88 | |
parent | d8a0bb450d28ee6e77de0cb50473ff6ee2a966b1 (diff) | |
download | alpine-conf-96b29f5dd64111b9d063a327e24247ced02c1427.zip |
update-kernel: add additional firmware files
-rw-r--r-- | update-kernel.in | 12 |
1 files changed, 12 insertions, 0 deletions
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" \ |