2019-06-21 02:39:04 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2020-02-24 08:04:00 -07:00
|
|
|
# The wpa_supplicant package is built statically using
|
|
|
|
# libnl-tiny which is a minimal version of libnl maintained
|
|
|
|
# by OpenWRT.
|
2021-07-17 21:30:32 -06:00
|
|
|
make CC="$CC" ALL_LIBS=libnl-tiny.a -C libnl
|
2020-02-24 08:04:00 -07:00
|
|
|
|
|
|
|
# The CFLAGS must be set to link to the above locally built
|
|
|
|
# libnl-tiny library.
|
|
|
|
export CFLAGS="$CFLAGS -I$PWD/libnl/include -L$PWD/libnl -lnl-tiny"
|
|
|
|
export CFLAGS="$CFLAGS -static -D_GNU_SOURCE -DLIBNL1_COMPAT"
|
|
|
|
|
2019-06-21 02:39:04 -06:00
|
|
|
cd wpa_supplicant
|
|
|
|
|
2021-07-17 21:30:32 -06:00
|
|
|
make V=1 LIBDIR=/usr/lib BINDIR=/usr/bin DRV_LIBS="$CFLAGS"
|
|
|
|
make LIBDIR=/usr/lib BINDIR=/usr/bin install
|
2020-08-14 00:48:18 -06:00
|
|
|
|
2021-07-01 10:35:51 -06:00
|
|
|
mkdir -p \
|
|
|
|
"$1/usr/share/man/man5" \
|
|
|
|
"$1/usr/share/man/man8"
|
2020-08-14 00:48:18 -06:00
|
|
|
|
2021-07-01 10:35:51 -06:00
|
|
|
cp -f doc/docbook/*.5 "$1/usr/share/man/man5"
|
|
|
|
cp -f doc/docbook/*.8 "$1/usr/share/man/man8"
|