added hostapd and openssl

This commit is contained in:
wt
2025-03-05 17:52:04 +07:00
parent 4ff7423c21
commit 98836f9b99
12 changed files with 107 additions and 29 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
set -x
openssl() {
pkgname=openssl
pkgver=3.4.1
printf "$GREEN** Building and installing ${pkgname}\n$RESET"
[ ! -d $build/${pkgname} ] && mkdir $build/${pkgname}
cd $build/${pkgname}
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.gz
cd ${pkgname}-${pkgver}/
./config linux-armv4 CROSS_COMPILE=${CROSS_COMPILE}-
check $? "Configure ${pkgname}"
make ${makeflags}
check $? "Build ${pkgname}"
${CROSS_COMPILE}-strip libcrypto.so.3 libssl.so.3
check $? "Stripping ${pkgname} binary"
cp -v libcrypto.so.3 libssl.so.3 $rootfspath/usr/lib/
ln -sv libcrypto.so.3 $rootfspath/usr/lib/libcrypto.so
ln -sv libssl.so.3 $rootfspath/usr/lib/libssl.so
check $? "Install to rootfs ${pkgname}"
}