summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@artinalgorithms.be>2023-08-18 17:26:28 +0200
committerAnastasia Klimchuk <aklm@chromium.org>2023-08-29 00:34:49 +0000
commitbeaf9cd90b96d06f5a724bce42d3f8e4df58ea14 (patch)
tree04f78d462f22195f074827dc5ed30e70262b5535
parentd534100c0503bc9ff47d95456ceabbe644929b5d (diff)
downloadflashrom-beaf9cd90b96d06f5a724bce42d3f8e4df58ea14.tar.gz
flashrom-beaf9cd90b96d06f5a724bce42d3f8e4df58ea14.tar.bz2
flashrom-beaf9cd90b96d06f5a724bce42d3f8e4df58ea14.zip
Makefile: Remove a bashism when searching for sphinx-build
e.g. when the shell is dash and sphinx-build is not installed, HAS_SPHINXBUILD would be wrongly set to yes. Change-Id: I4d89e24ec3401446acec857eae134928bc3064d2 Signed-off-by: Bart De Schuymer <bdschuym@artinalgorithms.be> Reviewed-on: https://review.coreboot.org/c/flashrom/+/77288 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <patrick@coreboot.org> Reviewed-by: Jan Samek <jan.samek@siemens.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bc3eecbfb..bf01d0f8c 100644
--- a/Makefile
+++ b/Makefile
@@ -250,7 +250,7 @@ HAS_LINUX_MTD := $(call c_compile_test, Makefile.d/linux_mtd_test.c)
HAS_LINUX_SPI := $(call c_compile_test, Makefile.d/linux_spi_test.c)
HAS_LINUX_I2C := $(call c_compile_test, Makefile.d/linux_i2c_test.c)
HAS_SERIAL := $(strip $(if $(filter $(TARGET_OS), DOS libpayload), no, yes))
-HAS_SPHINXBUILD := $(shell command -v $(SPHINXBUILD) &>/dev/null && echo yes || echo no)
+HAS_SPHINXBUILD := $(shell command -v $(SPHINXBUILD) >/dev/null 2>/dev/null && echo yes || echo no)
EXEC_SUFFIX := $(strip $(if $(filter $(TARGET_OS), DOS MinGW), .exe))
override CFLAGS += -Iinclude