Commit c786cb5c authored by Timo Teräs's avatar Timo Teräs Committed by Natanael Copa

update-kernel: include associated firmware files to modloop

Some drivers reference only the .bin but require additional
files such as .$board.txt or .clm_blob. Include all files
in modloop that might match. ref #9549
parent ab756bda
......@@ -278,10 +278,10 @@ 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.
if [ -e "$ROOT/lib/firmware/${FW%.*}.txt" ]; then
install -pD $ROOT/lib/firmware/${FW%.*}.txt $MODLOOP/modules/firmware/${FW%.*}.txt
fi
# copy also all potentially associated files
for _file in "$ROOT"/lib/firmware/"${FW%.*}".*; do
install -pD "$_file" "$MODLOOP/modules/firmware/${_file#*/lib/firmware/}"
done
fi
done
......
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