updated kernel.sh lrzsz.sh
This commit is contained in:
+20
-8
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user