update all scripts

This commit is contained in:
wt
2026-03-06 18:01:24 +07:00
parent c9bb397d65
commit d065fa6e04
26 changed files with 218 additions and 33 deletions
+8
View File
@@ -64,10 +64,18 @@ kernel_with_rootfs() {
#-----------------------------------------------------------
kernel_headers() {
srcurl=https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${KERNEL_VERSION}.tar.xz
print_info "** Building Linux Kernel headers"
[ -d $build/kernel-headers ] && return 0
[ ! -d $build/kernel-headers ] && mkdir $build/kernel-headers
cd $build/kernel-headers
if [ ! -f $root/downloads/linux-${KERNEL_VERSION}.tar.xz ]; then
print_info "** Downloading $srcurl"
cd $root/downloads
wget $srcurl
check $? "download $srcurl"
cd -
fi
tar -xf $root/downloads/linux-$KERNEL_VERSION.tar.xz
check $? "Extract Linux Kernel"
cd linux-$KERNEL_VERSION