Commit 96b29f5d authored by Carlo Landmeter's avatar Carlo Landmeter

update-kernel: add additional firmware files

parent d8a0bb45
......@@ -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
# include bluetooth firmware in modloop
if [ -d "$MODLOOP/modules/firmware/brcm" ]; then
for _btfw in "$ROOT"/lib/firmware/brcm/*.hcd; do
install -pD "$_btfw" \
mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz -exit-on-error
mkinitfs $MKINITFS_ARGS -q -b $ROOT -F "$features base squashfs" \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment