Commit 6171fc7e authored by Timo Teräs's avatar Timo Teräs

update-kernel: include only needed firmwares in modloop

new modloop (44.9M)
117.9M	4.1.10-0-grsec
39.3M	firmware
157.1M	total

old modloop (80.8M)
117.9M	4.1.10-0-grsec
112.1M	firmware
230.0M	total
parent af3dd201
...@@ -140,7 +140,7 @@ trap clean_up EXIT $SIGNALS ...@@ -140,7 +140,7 @@ trap clean_up EXIT $SIGNALS
if [ "$SUPERUSER" ]; then if [ "$SUPERUSER" ]; then
apk add $QUIET_OPT --update-cache -t $VIRTUAL mkinitfs squashfs-tools apk add $QUIET_OPT --update-cache -t $VIRTUAL mkinitfs squashfs-tools kmod
fi fi
if [ -z "$features" ]; then if [ -z "$features" ]; then
...@@ -221,7 +221,10 @@ DTB_STAGING=$TMPDIR/dtbs ...@@ -221,7 +221,10 @@ DTB_STAGING=$TMPDIR/dtbs
cp -a $ROOT/lib/modules $MODLOOP cp -a $ROOT/lib/modules $MODLOOP
cp -a $ROOT/lib/firmware $MODLOOP/modules mkdir -p $MODLOOP/modules/firmware
find $ROOT/lib/modules -type f -name "*.ko" | xargs modinfo -F firmware | sort -u | while read FW; do
[ -e "$ROOT/lib/firmware/$FW" ] && install -pD $ROOT/lib/firmware/$FW $MODLOOP/modules/firmware/$FW
_exec mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz _exec mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz
_exec mkinitfs -q -b $ROOT -F "$features base squashfs" \ _exec mkinitfs -q -b $ROOT -F "$features base squashfs" \
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment