From b41f404d9ffa259e5f2f636920ba713a29d1f678 Mon Sep 17 00:00:00 2001 From: Jonathan Richardson Date: Tue, 7 Jan 2020 14:19:53 -0800 Subject: [PATCH] make: Fix python command in Makefile Remove detection of python command. If PYTHON_COMMAND isn't set, PYCMD defaults to python which doesn't exist in some python3 only environments such as yocto. genconfig.py has already been updated to deprecate python2 support. Change-Id: I1a289bc0e30a2de9396e1397a72d8f0e81912a68 Signed-off-by: Jonathan Richardson Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/483418 Reviewed-by: Seth Howell Reviewed-by: Scott Branden Reviewed-by: Shuhei Matsumoto Reviewed-by: Ben Walker Reviewed-by: Jim Harris Community-CI: Broadcom SPDK FC-NVMe CI Tested-by: SPDK CI Jenkins --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 67cd217c4..357dc3446 100644 --- a/Makefile +++ b/Makefile @@ -103,11 +103,9 @@ mk/cc.mk: false include/spdk/config.h: mk/config.mk scripts/genconfig.py - $(Q)PYCMD=$$(cat PYTHON_COMMAND 2>/dev/null) ; \ - test -z "$$PYCMD" && PYCMD=python ; \ echo "#ifndef SPDK_CONFIG_H" > $@.tmp; \ echo "#define SPDK_CONFIG_H" >> $@.tmp; \ - $$PYCMD scripts/genconfig.py $(MAKEFLAGS) >> $@.tmp; \ + scripts/genconfig.py $(MAKEFLAGS) >> $@.tmp; \ echo "#endif /* SPDK_CONFIG_H */" >> $@.tmp; \ cmp -s $@.tmp $@ || mv $@.tmp $@ ; \ rm -f $@.tmp