updated kernel.sh lrzsz.sh

This commit is contained in:
wt
2026-03-12 20:12:23 +07:00
parent d065fa6e04
commit a73a1715dd
2 changed files with 28 additions and 8 deletions
+20 -8
View File
@@ -69,15 +69,27 @@ 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 -
if [ "${BOARD_NAME}" = "orangepi_zero_2w" ]; then
if [ ! -f $root/downloads/linux-orangepi-orange-pi-6.1-sun50iw9.tar.xz ]; then
print_info "** Downloading https://gitea.home.com:3000/api/packages/TolaMironcenko/generic/linux/orangepi-orange-pi-6.1-sun50iw9/linux-orangepi-orange-pi-6.1-sun50iw9.tar.xz"
cd $root/downloads
wget https://gitea.home.com:3000/api/packages/TolaMironcenko/generic/linux/orangepi-orange-pi-6.1-sun50iw9/linux-orangepi-orange-pi-6.1-sun50iw9.tar.xz
check $? "download https://gitea.home.com:3000/api/packages/TolaMironcenko/generic/linux/orangepi-orange-pi-6.1-sun50iw9/linux-orangepi-orange-pi-6.1-sun50iw9.tar.xz"
cd -
fi
tar -xf $root/downloads/linux-orangepi-orange-pi-6.1-sun50iw9.tar.xz
check $? "Extract Linux Kernel"
else
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"
fi
tar -xf $root/downloads/linux-$KERNEL_VERSION.tar.xz
check $? "Extract Linux Kernel"
cd linux-$KERNEL_VERSION
make ARCH=$ARCH headers
check $? "Build kernel headers"