added lrzsz and updated finit_init download paths
This commit is contained in:
1 parent
f0cad643d4
commit
0379b1dbe0
8 files changed
+64
-3
No files matched your search
@@ -59,4 +59,5 @@ export KO8821AU_ENABLE=n
|
|||||||
export FINIT_INIT_ENABLE=y
|
export FINIT_INIT_ENABLE=y
|
||||||
export LIBSQLITE3_ENABLE=n
|
export LIBSQLITE3_ENABLE=n
|
||||||
export LM_SENSORS_ENABLE=n
|
export LM_SENSORS_ENABLE=n
|
||||||
|
export LRZSZ_ENABLE=n
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
@@ -61,4 +61,5 @@ export KO8821AU_ENABLE=n
|
|||||||
export FINIT_INIT_ENABLE=y
|
export FINIT_INIT_ENABLE=y
|
||||||
export LIBSQLITE3_ENABLE=n
|
export LIBSQLITE3_ENABLE=n
|
||||||
export LM_SENSORS_ENABLE=n
|
export LM_SENSORS_ENABLE=n
|
||||||
|
export LRZSZ_ENABLE=n
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
@@ -49,4 +49,5 @@ export OPENSSL_ENABLE=n
|
|||||||
export FINIT_INIT_ENABLE=y
|
export FINIT_INIT_ENABLE=y
|
||||||
export LIBSQLITE3_ENABLE=n
|
export LIBSQLITE3_ENABLE=n
|
||||||
export LM_SENSORS_ENABLE=n
|
export LM_SENSORS_ENABLE=n
|
||||||
|
export LRZSZ_ENABLE=n
|
||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
@@ -20,6 +20,7 @@
|
|||||||
. ./scripts/libsqlite3.sh
|
. ./scripts/libsqlite3.sh
|
||||||
. ./scripts/lm_sensors.sh
|
. ./scripts/lm_sensors.sh
|
||||||
. ./scripts/wpa_supplicant.sh
|
. ./scripts/wpa_supplicant.sh
|
||||||
|
. ./scripts/lrzsz.sh
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
build)
|
build)
|
||||||
@@ -80,6 +81,9 @@ case $1 in
|
|||||||
wpa_supplicant)
|
wpa_supplicant)
|
||||||
build_wpa_supplicant
|
build_wpa_supplicant
|
||||||
;;
|
;;
|
||||||
|
lrzsz)
|
||||||
|
lrzsz-build
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET"
|
printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ finit_init() {
|
|||||||
printf "$GREEN** Building and installing finit\n$RESET"
|
printf "$GREEN** Building and installing finit\n$RESET"
|
||||||
mkdir -pv $build/finit
|
mkdir -pv $build/finit
|
||||||
cd $build/finit
|
cd $build/finit
|
||||||
git clone https://github.com/troglobit/libite
|
git clone https://gitea.home.com:3000/TolaMironcenko/libite.git
|
||||||
check $? "Download libite"
|
check $? "Download libite"
|
||||||
git clone https://github.com/troglobit/libuev
|
git clone https://gitea.home.com:3000/TolaMironcenko/libuev.git
|
||||||
check $? "Download libuev"
|
check $? "Download libuev"
|
||||||
git clone https://github.com/troglobit/finit
|
git clone https://gitea.home.com:3000/TolaMironcenko/finit.git
|
||||||
check $? "Download finit"
|
check $? "Download finit"
|
||||||
|
|
||||||
cd libite
|
cd libite
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
. ./scripts/colors.sh
|
||||||
|
. ./scripts/funcs.sh
|
||||||
|
. ./scripts/config.sh
|
||||||
|
|
||||||
|
lrzsz-build() {
|
||||||
|
pkgname=lrzsz
|
||||||
|
pkgver=0.12.20
|
||||||
|
printf "$GREEN** Building and installing ${pkgname}\n$RESET"
|
||||||
|
mkdir $build/${pkgname}
|
||||||
|
cd $build/${pkgname}
|
||||||
|
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.gz
|
||||||
|
check $? "Extract ${pkgname}"
|
||||||
|
cd ${pkgname}-${pkgver}
|
||||||
|
CC=${CROSS_COMPILE}-gcc AR=${CROSS_COMPILE}-ar ./configure --prefix=/usr --host=${CROSS_COMPILE}-
|
||||||
|
check $? "Configure ${pkgname}"
|
||||||
|
make $makeflags
|
||||||
|
check $? "Build ${pkgname}"
|
||||||
|
make DESTDIR=$rootfspath install
|
||||||
|
# rm -rv $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/lib/{pkgconfig,libz.a}
|
||||||
|
${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/bin/{lsx,lrb,lrx,lrz,lsz,lsb}
|
||||||
|
check $? "Installing to rootfs ${pkgname}"
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
pkgname=lrzsz
|
||||||
|
pkgver=0.12.20
|
||||||
|
pkgrel=1
|
||||||
|
source="https://gitea.home.com:3000/api/packages/TolaMironcenko/generic/lrzsz/0.12.20/lrzsz-0.12.20.tar.gz"
|
||||||
|
deps="uClibc-ng-1.0.50-1"
|
||||||
|
|
||||||
|
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/bin
|
||||||
|
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
|
||||||
|
export ARCH=arm
|
||||||
|
|
||||||
|
configure() {
|
||||||
|
cd $srcdir
|
||||||
|
tar -xvf $pkgname-$pkgver.tar.gz
|
||||||
|
cd -
|
||||||
|
export srcdir=$srcdir/$pkgname-$pkgver
|
||||||
|
cd $srcdir
|
||||||
|
CC=${CROSS_COMPILE}-gcc AR=${CROSS_COMPILE}-ar ./configure --prefix=/usr --host=${CROSS_COMPILE}-
|
||||||
|
cd -
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
make -C $srcdir -j$(nproc)
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
make -C $srcdir DESTDIR=$pkgdir install
|
||||||
|
${CROSS_COMPILE}-strip --strip-unneeded $pkgdir/usr/bin/*
|
||||||
|
}
|
||||||
@@ -24,6 +24,7 @@
|
|||||||
. ./scripts/libsqlite3.sh
|
. ./scripts/libsqlite3.sh
|
||||||
. ./scripts/lm_sensors.sh
|
. ./scripts/lm_sensors.sh
|
||||||
. ./scripts/wpa_supplicant.sh
|
. ./scripts/wpa_supplicant.sh
|
||||||
|
. ./scripts/lrzsz.sh
|
||||||
|
|
||||||
#----------- Building rootfs ----------------------
|
#----------- Building rootfs ----------------------
|
||||||
rootfs() {
|
rootfs() {
|
||||||
@@ -88,6 +89,7 @@ EOF
|
|||||||
[ "$KO8821AU_ENABLE" = "y" ] && ko8821au
|
[ "$KO8821AU_ENABLE" = "y" ] && ko8821au
|
||||||
[ "$LIBSQLITE3_ENABLE" = "y"] && libsqlite3
|
[ "$LIBSQLITE3_ENABLE" = "y"] && libsqlite3
|
||||||
[ "$LM_SENSORS_ENABLE" = "y" ] && lm_sensors
|
[ "$LM_SENSORS_ENABLE" = "y" ] && lm_sensors
|
||||||
|
[ "$LRZSZ_ENABLE" = "y" ] && lrzsz-build
|
||||||
|
|
||||||
if [ ! -z "$DEFAULT_HOSTNAME" ]; then
|
if [ ! -z "$DEFAULT_HOSTNAME" ]; then
|
||||||
echo "$DEFAULT_HOSTNAME" > $rootfspath/etc/hostname
|
echo "$DEFAULT_HOSTNAME" > $rootfspath/etc/hostname
|
||||||
|
|||||||
Reference in new issue
Block a user