added wifi support for orangepi_zero_2w
This commit is contained in:
1 parent
1cbe01022c
commit
ff773460af
14 files changed
+257
-1
No files matched your search
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
. ./scripts/colors.sh
|
||||
. ./scripts/funcs.sh
|
||||
. ./scripts/config.sh
|
||||
. ./scripts/libnl.sh
|
||||
. ./scripts/openssl.sh
|
||||
|
||||
build_wpa_supplicant() {
|
||||
[ ! -d $build/libnl ] && libnl
|
||||
[ ! -d $build/openssl ] && openssl
|
||||
pkgname=wpa_supplicant
|
||||
pkgver=2.11
|
||||
printf "$GREEN** Building and installing iw\n$RESET"
|
||||
[ ! -d $build/wpa_supplicant ] && mkdir $build/wpa_supplicant
|
||||
cd $build/wpa_supplicant
|
||||
tar -xvf $root/downloads/${pkgname}-${pkgver}.tar.gz
|
||||
cd ${pkgname}-${pkgver}/wpa_supplicant
|
||||
cp $root/board/${BOARD_NAME}/wpa_supplicant.config .config
|
||||
CC=${CROSS_COMPILE}-gcc \
|
||||
PKG_CONFIG_PATH=/opt/toolchains/$CROSS_COMPILE/$CROSS_COMPILE/sysroot/usr/lib/pkgconfig \
|
||||
make ${makeflags} BINDIR=/usr/bin LIBDIR=/usr/lib
|
||||
check $? "Build ${pkgname}"
|
||||
${CROSS_COMPILE}-strip wpa_cli wpa_passphrase wpa_supplicant
|
||||
check $? "Stripping ${pkgname} binary"
|
||||
cp -v wpa_cli wpa_passphrase wpa_supplicant $rootfspath/usr/bin/
|
||||
check $? "Install to rootfs ${pkgname}"
|
||||
}
|
||||
Reference in new issue
Block a user