9 echo "$0 [-c | --codecov] [-f | --force-config]"
15 while [ "$1" != "" ]; do
17 -c | --codecov ) shift
18 echo "$0: use code coverage specified"
21 -f | --force-config ) shift
23 echo "$0: force copy config specified"
29 echo "Building TNC testing tools"
31 make clean > /dev/null
34 echo "Building wlantest"
36 make clean > /dev/null
37 make QUIET=1 -j8 > /dev/null
39 echo "Building hostapd"
41 if [ ! -e .config -o $force_config -eq 1 ]; then
42 cp ../tests/hwsim/example-hostapd.config .config
44 echo "hostapd config file exists"
47 if [ $use_lcov -eq 1 ]; then
48 if ! grep -q CONFIG_CODE_COVERAGE .config; then
49 echo CONFIG_CODE_COVERAGE=y >> .config
51 echo "CONFIG_CODE_COVERAGE already exists in hostapd/.config. Ignore"
55 make clean > /dev/null
56 make QUIET=1 -j8 hostapd hostapd_cli hlr_auc_gw
58 echo "Building wpa_supplicant"
60 if [ ! -e .config -o $force_config -eq 1 ]; then
61 cp ../tests/hwsim/example-wpa_supplicant.config .config
63 echo "wpa_supplicant config file exists"
66 if [ $use_lcov -eq 1 ]; then
67 if ! grep -q CONFIG_CODE_COVERAGE .config; then
68 echo CONFIG_CODE_COVERAGE=y >> .config
70 echo "CONFIG_CODE_COVERAGE already exists in wpa_supplicant/.config. Ignore"
74 make clean > /dev/null
75 if [ -z $FIPSLD_CC ]; then