]> git.armaanb.net Git - asd-repo.git/blob - extra/wpa_supplicant/build
Adapt for asd linux
[asd-repo.git] / extra / wpa_supplicant / build
1 #!/bin/sh -e
2
3 # The wpa_supplicant package is built statically using
4 # libnl-tiny which is a minimal version of libnl maintained
5 # by OpenWRT.
6 make CC="${CC:-cc}" ALL_LIBS=libnl-tiny.a -C libnl
7
8 # The CFLAGS must be set to link to the above locally built
9 # libnl-tiny library.
10 export CFLAGS="$CFLAGS -I$PWD/libnl/include -L$PWD/libnl -lnl-tiny"
11 export CFLAGS="$CFLAGS -static -D_GNU_SOURCE -DLIBNL1_COMPAT"
12
13 cd wpa_supplicant
14
15 make LIBDIR=/usr/lib BINDIR=/usr/bin DRV_LIBS="$CFLAGS" CC="${CC:-cc}"
16 make LIBDIR=/usr/lib BINDIR=/usr/bin DESTDIR="$1" install
17
18 install -Dm644 -t "$1/usr/share/man/man8" doc/docbook/*.8
19 install -Dm644 -t "$1/usr/share/man/man5" doc/docbook/*.5