tests: Reorder build.sh operations
This leaves the build tree with valid wpa_supplicant object files in the end and makes it a bit easier to do additional custom builds when needed. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
185275228d
commit
7fe84009f8
1 changed files with 22 additions and 23 deletions
|
@ -26,25 +26,16 @@ while [ "$1" != "" ]; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Building wpa_supplicant"
|
echo "Building TNC testing tools"
|
||||||
cd ../../wpa_supplicant
|
cd tnc
|
||||||
if [ ! -e .config -o $force_config -eq 1 ]; then
|
|
||||||
cp ../tests/hwsim/example-wpa_supplicant.config .config
|
|
||||||
else
|
|
||||||
echo "wpa_supplicant config file exists"
|
|
||||||
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
|
make clean > /dev/null
|
||||||
make QUIET=1 -j8
|
make QUIET=1 -j8
|
||||||
|
|
||||||
|
echo "Building wlantest"
|
||||||
|
cd ../../../wlantest
|
||||||
|
make clean > /dev/null
|
||||||
|
make QUIET=1 -j8 > /dev/null
|
||||||
|
|
||||||
echo "Building hostapd"
|
echo "Building hostapd"
|
||||||
cd ../hostapd
|
cd ../hostapd
|
||||||
if [ ! -e .config -o $force_config -eq 1 ]; then
|
if [ ! -e .config -o $force_config -eq 1 ]; then
|
||||||
|
@ -64,13 +55,21 @@ fi
|
||||||
make clean > /dev/null
|
make clean > /dev/null
|
||||||
make QUIET=1 -j8 hostapd hostapd_cli hlr_auc_gw
|
make QUIET=1 -j8 hostapd hostapd_cli hlr_auc_gw
|
||||||
|
|
||||||
echo "Building wlantest"
|
echo "Building wpa_supplicant"
|
||||||
cd ../wlantest
|
cd ../wpa_supplicant
|
||||||
make clean > /dev/null
|
if [ ! -e .config -o $force_config -eq 1 ]; then
|
||||||
make QUIET=1 -j8 > /dev/null
|
cp ../tests/hwsim/example-wpa_supplicant.config .config
|
||||||
|
else
|
||||||
|
echo "wpa_supplicant config file exists"
|
||||||
|
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
|
||||||
|
|
||||||
echo "Building TNC testing tools"
|
|
||||||
cd ../tests/hwsim/tnc
|
|
||||||
make clean > /dev/null
|
make clean > /dev/null
|
||||||
make QUIET=1 -j8
|
make QUIET=1 -j8
|
||||||
cd ..
|
|
||||||
|
|
Loading…
Reference in a new issue