configure: don't generate config.h during configure
This script don't respect MAKEFLAGS here. Also config.h is dependency during build so no need to invoke it multpiple times. Change-Id: I2062819cb5d3f1ab87d8127a1a41c209515b199c Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/426363 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Lance Hartmann <lance.hartmann@oracle.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
ef80470338
commit
3b9baaf0f4
15
configure
vendored
15
configure
vendored
@ -457,21 +457,6 @@ if [ -n "$DESTDIR" ]; then
|
||||
echo "DESTDIR?=$DESTDIR" >> CONFIG.local
|
||||
fi
|
||||
|
||||
python_command=
|
||||
for interpreter in python3 python2 python ; do
|
||||
type $interpreter > /dev/null 2>&1 || continue
|
||||
python_command=$interpreter
|
||||
break
|
||||
done
|
||||
if [[ -z "$python_command" ]] ; then
|
||||
echo "Could not find python interpreter! Bailing out."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -f PYTHON_COMMAND
|
||||
echo $python_command > PYTHON_COMMAND
|
||||
$python_command scripts/genconfig.py > config.h
|
||||
|
||||
echo "done."
|
||||
if [[ "$OSTYPE" == "freebsd"* ]]; then
|
||||
echo "Type 'gmake' to build."
|
||||
|
Loading…
x
Reference in New Issue
Block a user