updated openssl and added libsqlite3
This commit is contained in:
@@ -50,4 +50,5 @@ export DNSMASQ_ENABLE=n
|
||||
export IPTABLES_ENABLE=n
|
||||
export KO8821AU_ENABLE=n
|
||||
export FINIT_INIT_ENABLE=y
|
||||
export LIBSQLITE3_ENABLE=n
|
||||
#--------------------------------------
|
||||
|
||||
@@ -50,4 +50,5 @@ export DNSMASQ_ENABLE=n
|
||||
export IPTABLES_ENABLE=n
|
||||
export KO8821AU_ENABLE=n
|
||||
export FINIT_INIT_ENABLE=y
|
||||
export LIBSQLITE3_ENABLE=n
|
||||
#--------------------------------------
|
||||
|
||||
@@ -38,5 +38,7 @@ export CURL_ENABLE=n
|
||||
export BASH_ENABLE=n
|
||||
export GIT_ENABLE=n
|
||||
export GITEA_ENABLE=n
|
||||
export OPENSSL_ENABLE=n
|
||||
export FINIT_INIT_ENABLE=y
|
||||
export LIBSQLITE3_ENABLE=n
|
||||
#--------------------------------------
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
. ./scripts/iptables.sh
|
||||
. ./scripts/8821au_ko.sh
|
||||
. ./scripts/finit_init.sh
|
||||
. ./scripts/libsqlite3.sh
|
||||
|
||||
case $1 in
|
||||
build)
|
||||
@@ -68,6 +69,9 @@ case $1 in
|
||||
initramfs)
|
||||
initramfs
|
||||
;;
|
||||
libsqlite3)
|
||||
libsqlite3
|
||||
;;
|
||||
*)
|
||||
printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET"
|
||||
exit 1
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
. ./scripts/colors.sh
|
||||
. ./scripts/funcs.sh
|
||||
. ./scripts/config.sh
|
||||
|
||||
libsqlite3() {
|
||||
pkgname=libsqlite3
|
||||
pkgver=3.10.0
|
||||
printf "$GREEN** Building and installing ${pkgname}\n$RESET"
|
||||
[ ! -d $build/${pkgname} ] && mkdir $build/${pkgname}
|
||||
cd $build/${pkgname}
|
||||
git clone https://github.com/LuaDist/libsqlite3.git
|
||||
check $? "Download ${pkgname}"
|
||||
cd ${pkgname}
|
||||
./configure \
|
||||
--host=${CROSS_COMPILE} \
|
||||
--prefix=/usr
|
||||
check $? "Configure ${pkgname}"
|
||||
make $makeflags
|
||||
check $? "Build ${pkgname}"
|
||||
make DESTDIR=$rootfspath install
|
||||
check $? "Installing to rootfs ${pkgname}"
|
||||
${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/lib/*
|
||||
rm -rvf $rootfspath/usr/lib/pkgconfig
|
||||
find $rootfspath -type f -name "*.a" -delete
|
||||
find $rootfspath -type f -name "*.la" -delete
|
||||
rm -rvf $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/share/doc
|
||||
}
|
||||
@@ -18,6 +18,8 @@ openssl() {
|
||||
./config linux-armv4 CROSS_COMPILE=${CROSS_COMPILE}-
|
||||
elif [ "$ARCH" = "arm64" ]; then
|
||||
./config linux-aarch64 no-async CROSS_COMPILE=${CROSS_COMPILE}-
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
./config linux-x86_64 CROSS_COMPILE=${CROSS_COMPILE}-
|
||||
fi
|
||||
check $? "Configure ${pkgname}"
|
||||
make ${makeflags}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
. ./scripts/iptables.sh
|
||||
. ./scripts/8821au_ko.sh
|
||||
. ./scripts/finit_init.sh
|
||||
. ./scripts/libsqlite3.sh
|
||||
|
||||
#----------- Building rootfs ----------------------
|
||||
rootfs() {
|
||||
@@ -82,6 +83,7 @@ EOF
|
||||
[ "$HOSTAPD_ENABLE" = "y" ] && hostapd
|
||||
[ "$IPTABLES_ENABLE" = "y" ] && iptables
|
||||
[ "$KO8821AU_ENABLE" = "y" ] && ko8821au
|
||||
[ "$LIBSQLITE3_ENABLE" = "Y"] && libsqlite3
|
||||
|
||||
chmod 640 $rootfspath/etc/shadow $rootfspath/etc/inittab
|
||||
chmod 755 $rootfspath/etc/init.d/* $rootfspath/usr/share/udhcpc/default.script $rootfspath/init
|
||||
|
||||
@@ -22,3 +22,4 @@ https://dl.gitea.com/gitea/1.22.4/gitea-1.22.4-linux-arm-5
|
||||
# https://github.com/troglobit/libite
|
||||
# https://github.com/troglobit/libuev
|
||||
# https://github.com/troglobit/finit
|
||||
# https://github.com/LuaDist/libsqlite3.git
|
||||
|
||||
Reference in New Issue
Block a user