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"
|
||||
|
||||
@@ -7,10 +7,18 @@
|
||||
lrzsz-build() {
|
||||
pkgname=lrzsz
|
||||
pkgver=0.12.20
|
||||
srcurl=https://www.ohse.de/uwe/releases/${pkgname}-${pkgver}.tar.gz
|
||||
print_info "** Building and installing ${pkgname}"
|
||||
[ -d $build/${pkgname} ] && return 0
|
||||
mkdir -p $build/${pkgname}
|
||||
cd $build/${pkgname}
|
||||
if [ ! -f $root/downloads/${pkgname}-${pkgver}.tar.gz ]; then
|
||||
print_info "** Downloading $srcurl"
|
||||
cd $root/downloads
|
||||
wget $srcurl
|
||||
check $? "download $srcurl"
|
||||
cd -
|
||||
fi
|
||||
tar -xf $root/downloads/${pkgname}-${pkgver}.tar.gz
|
||||
check $? "Extract ${pkgname}"
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
Reference in New Issue
Block a user