mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
f380464257
This is the common case and these prints do not really help and just make the output from build.sh less clear. Signed-off-by: Jouni Malinen <j@w1.fi>
80 lines
1.6 KiB
Bash
Executable File
80 lines
1.6 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd $(dirname $0)
|
|
|
|
usage()
|
|
{
|
|
echo "$0 [-c | --codecov] [-f | --force-config]"
|
|
exit 1
|
|
}
|
|
|
|
use_lcov=0
|
|
force_config=0
|
|
while [ "$1" != "" ]; do
|
|
case $1 in
|
|
-c | --codecov ) shift
|
|
echo "$0: use code coverage specified"
|
|
use_lcov=1
|
|
;;
|
|
-f | --force-config ) shift
|
|
force_config=1
|
|
echo "$0: force copy config specified"
|
|
;;
|
|
* ) usage
|
|
esac
|
|
done
|
|
|
|
echo "Building TNC testing tools"
|
|
cd tnc
|
|
make clean > /dev/null
|
|
make QUIET=1 -j8
|
|
|
|
echo "Building wlantest"
|
|
cd ../../../wlantest
|
|
make clean > /dev/null
|
|
make QUIET=1 -j8 > /dev/null
|
|
|
|
echo "Building hs20-osu-client"
|
|
cd ../hs20/client/
|
|
make clean > /dev/null 2>&1
|
|
make QUIET=1 CONFIG_NO_BROWSER=1
|
|
|
|
echo "Building hostapd"
|
|
cd ../../hostapd
|
|
if [ ! -e .config -o $force_config -eq 1 ]; then
|
|
cp ../tests/hwsim/example-hostapd.config .config
|
|
fi
|
|
|
|
if [ $use_lcov -eq 1 ]; then
|
|
if ! grep -q CONFIG_CODE_COVERAGE .config; then
|
|
echo CONFIG_CODE_COVERAGE=y >> .config
|
|
else
|
|
echo "CONFIG_CODE_COVERAGE already exists in hostapd/.config. Ignore"
|
|
fi
|
|
fi
|
|
|
|
make clean > /dev/null
|
|
make QUIET=1 -j8 hostapd hostapd_cli hlr_auc_gw
|
|
|
|
echo "Building wpa_supplicant"
|
|
cd ../wpa_supplicant
|
|
if [ ! -e .config -o $force_config -eq 1 ]; then
|
|
cp ../tests/hwsim/example-wpa_supplicant.config .config
|
|
fi
|
|
|
|
if [ $use_lcov -eq 1 ]; then
|
|
if ! grep -q CONFIG_CODE_COVERAGE .config; then
|
|
echo CONFIG_CODE_COVERAGE=y >> .config
|
|
else
|
|
echo "CONFIG_CODE_COVERAGE already exists in wpa_supplicant/.config. Ignore"
|
|
fi
|
|
fi
|
|
|
|
make clean > /dev/null
|
|
if [ -z $FIPSLD_CC ]; then
|
|
export FIPSLD_CC=gcc
|
|
fi
|
|
make QUIET=1 -j8
|