updated openssl and added libsqlite3

This commit is contained in:
wt
2025-09-01 14:25:15 +07:00
parent 178dea9592
commit bf4e87d7fd
8 changed files with 42 additions and 0 deletions
+4
View File
@@ -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
+29
View File
@@ -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
}
+2
View File
@@ -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}
+2
View File
@@ -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