added gzip linux kernel modules
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user