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 cd ../../wpa_supplicant
30 if [ ! -e .config -o $force_config -eq 1 ]; then
31 cp ../tests/hwsim/example-wpa_supplicant.config .config
33 echo "wpa_supplicant config file exists"
36 if [ $use_lcov -eq 1 ]; then
37 if ! grep -q CONFIG_CODE_COVERAGE .config; then
38 echo CONFIG_CODE_COVERAGE=y >> .config
40 echo "CONFIG_CODE_COVERAGE already exists in wpa_supplicant/.config. Ignore"
48 if [ ! -e .config -o $force_config -eq 1 ]; then
49 cp ../tests/hwsim/example-hostapd.config .config
51 echo "hostapd config file exists"
54 if [ $use_lcov -eq 1 ]; then
55 if ! grep -q CONFIG_CODE_COVERAGE .config; then
56 echo CONFIG_CODE_COVERAGE=y >> .config
58 echo "CONFIG_CODE_COVERAGE already exists in hostapd/.config. Ignore"
63 make -j8 hostapd hostapd_cli hlr_auc_gw