updated kernel.sh lrzsz.sh
This commit is contained in:
1 parent
d065fa6e04
commit
a73a1715dd
2 files changed
+28
-8
No files matched your search
+20
-8
@@ -69,15 +69,27 @@ kernel_headers() {
|
|||||||
[ -d $build/kernel-headers ] && return 0
|
[ -d $build/kernel-headers ] && return 0
|
||||||
[ ! -d $build/kernel-headers ] && mkdir $build/kernel-headers
|
[ ! -d $build/kernel-headers ] && mkdir $build/kernel-headers
|
||||||
cd $build/kernel-headers
|
cd $build/kernel-headers
|
||||||
if [ ! -f $root/downloads/linux-${KERNEL_VERSION}.tar.xz ]; then
|
if [ "${BOARD_NAME}" = "orangepi_zero_2w" ]; then
|
||||||
print_info "** Downloading $srcurl"
|
if [ ! -f $root/downloads/linux-orangepi-orange-pi-6.1-sun50iw9.tar.xz ]; then
|
||||||
cd $root/downloads
|
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"
|
||||||
wget $srcurl
|
cd $root/downloads
|
||||||
check $? "download $srcurl"
|
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
|
||||||
cd -
|
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
|
fi
|
||||||
tar -xf $root/downloads/linux-$KERNEL_VERSION.tar.xz
|
|
||||||
check $? "Extract Linux Kernel"
|
|
||||||
cd linux-$KERNEL_VERSION
|
cd linux-$KERNEL_VERSION
|
||||||
make ARCH=$ARCH headers
|
make ARCH=$ARCH headers
|
||||||
check $? "Build kernel headers"
|
check $? "Build kernel headers"
|
||||||
|
|||||||
@@ -7,10 +7,18 @@
|
|||||||
lrzsz-build() {
|
lrzsz-build() {
|
||||||
pkgname=lrzsz
|
pkgname=lrzsz
|
||||||
pkgver=0.12.20
|
pkgver=0.12.20
|
||||||
|
srcurl=https://www.ohse.de/uwe/releases/${pkgname}-${pkgver}.tar.gz
|
||||||
print_info "** Building and installing ${pkgname}"
|
print_info "** Building and installing ${pkgname}"
|
||||||
[ -d $build/${pkgname} ] && return 0
|
[ -d $build/${pkgname} ] && return 0
|
||||||
mkdir -p $build/${pkgname}
|
mkdir -p $build/${pkgname}
|
||||||
cd $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
|
tar -xf $root/downloads/${pkgname}-${pkgver}.tar.gz
|
||||||
check $? "Extract ${pkgname}"
|
check $? "Extract ${pkgname}"
|
||||||
cd ${pkgname}-${pkgver}
|
cd ${pkgname}-${pkgver}
|
||||||
|
|||||||
Reference in new issue
Block a user