added wifi support for orangepi_zero_2w
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
. ./scripts/finit_init.sh
|
||||
. ./scripts/libsqlite3.sh
|
||||
. ./scripts/lm_sensors.sh
|
||||
. ./scripts/wpa_supplicant.sh
|
||||
|
||||
case $1 in
|
||||
build)
|
||||
@@ -76,6 +77,9 @@ case $1 in
|
||||
lm_sensors)
|
||||
lm_sensors
|
||||
;;
|
||||
wpa_supplicant)
|
||||
build_wpa_supplicant
|
||||
;;
|
||||
*)
|
||||
printf "$UYELLOW** $0 script using: $0 {clean|build|download|rootfs}\n$RESET"
|
||||
exit 1
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
. ./scripts/finit_init.sh
|
||||
. ./scripts/libsqlite3.sh
|
||||
. ./scripts/lm_sensors.sh
|
||||
. ./scripts/wpa_supplicant.sh
|
||||
|
||||
#----------- Building rootfs ----------------------
|
||||
rootfs() {
|
||||
@@ -81,6 +82,7 @@ EOF
|
||||
[ "$GITEA_ENABLE" = "y" ] && gitea
|
||||
[ "$LIBNL_ENABLE" = "y" ] && libnl
|
||||
[ "$IW_ENABLE" = "y" ] && iw
|
||||
[ "$WPA_SUPPLICANT_ENABLE" = "y" ] && build_wpa_supplicant
|
||||
[ "$HOSTAPD_ENABLE" = "y" ] && hostapd
|
||||
[ "$IPTABLES_ENABLE" = "y" ] && iptables
|
||||
[ "$KO8821AU_ENABLE" = "y" ] && ko8821au
|
||||
|
||||
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