added hostapd and openssl
This commit is contained in:
1 parent
4ff7423c21
commit
98836f9b99
12 files changed
+107
-29
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
. ./scripts/colors.sh
|
||||
. ./scripts/funcs.sh
|
||||
. ./scripts/config.sh
|
||||
. ./scripts/libnl.sh
|
||||
. ./scripts/openssl.sh
|
||||
|
||||
hostapd() {
|
||||
[ ! -d $build/libnl ] && libnl
|
||||
[ ! -d $build/openssl ] && openssl
|
||||
pkgname=hostapd
|
||||
pkgver=2.11
|
||||
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}/${pkgname}
|
||||
sed -i "/CONFIG_EAP_TLS=y/s//#CONFIG_EAP_TLS=y/" defconfig
|
||||
cp -v defconfig .config
|
||||
CC=${CROSS_COMPILE}-gcc \
|
||||
PKG_CONFIG_PATH=/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/lib/pkgconfig \
|
||||
make ${makeflags}
|
||||
check $? "Build ${pkgname}"
|
||||
${CROSS_COMPILE}-strip hostapd hostapd_cli
|
||||
check $? "Stripping ${pkgname} binary"
|
||||
cp -v hostapd hostapd_cli $rootfspath/usr/bin/
|
||||
cp -v /opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/arm-buildroot-linux-uclibcgnueabihf/sysroot/lib/libatomic.so.1.2.0 \
|
||||
$rootfspath/usr/lib
|
||||
ln -sv libatomic.so.1.2.0 $rootfspath/usr/lib/libatomic.so.1
|
||||
check $? "Install to rootfs ${pkgname}"
|
||||
}
|
||||
Reference in new issue
Block a user