added gzip linux kernel modules

This commit is contained in:
wt
2025-03-25 12:18:25 +07:00
parent b05a2ff338
commit 85251243b3
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -19,6 +19,7 @@ ko8821au() {
mkdir -pv $rootfspath/lib/modules/${kernel_version}/kernel/drivers/net/wireless
cp -v 8821au.ko $rootfspath/lib/modules/${kernel_version}/kernel/drivers/net/wireless/
/sbin/depmod -a ${kernel_version} -b $rootfspath
gzip -9 $rootfspath/lib/modules/${kernel_version}/kernel/drivers/net/wireless/8821au.ko
check $? "Install Linux Kernel module ${pkgname}"
[ -d $rootfspath/usr/lib/modules/$kernel_version/source ] && rm -rv $rootfspath/usr/lib/modules/$kernel_version/source
[ -d $rootfspath/usr/lib/modules/$kernel_version/build ] && rm -rv $rootfspath/usr/lib/modules/$kernel_version/build
+3
View File
@@ -36,6 +36,9 @@ kernel_modules() {
check $? "Build Linux Kernel modules"
printf "$UGREEN** Installing Linux Kernel modules into rootfs path\n$RESET"
make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE- INSTALL_MOD_PATH=$rootfspath modules_install # &>> $fulllogfile
for i in $(find $rootfspath | grep .ko); do
gzip -9 $i;
done
check $? "Install Linux Kernel modules"
rm -v $rootfspath/usr/lib/modules/$kernel_version/{source,build}
} # kernel_modules