build: check cmake3 command silently 05/42305/3
authorNicolas PLANEL <[email protected]>
Tue, 4 Feb 2025 12:05:11 +0000 (13:05 +0100)
committerNicolas PLANEL <[email protected]>
Tue, 4 Feb 2025 13:29:45 +0000 (14:29 +0100)
Avoid which shell command to output verbose errors like
"""
which: no cmake3 in (/usr/sbin:/sbin:/bin: ...
"""

Type: make

Change-Id: Ib9a5fee72055b80b5e4e4c73280b19fea736c352
Signed-off-by: Nicolas PLANEL <[email protected]>
build-data/packages/libmemif.mk
build-data/packages/sample-plugin.mk
build-data/packages/vpp.mk
build/build_common.mk
extras/deprecated/vom/vom.mk

index a4676af..111b6bd 100644 (file)
@@ -14,7 +14,7 @@
 libmemif_source = extras
 libmemif_configure_subdir = libmemif
 
-ifneq ($(shell which cmake3),)
+ifneq ($(shell which cmake3 2>/dev/null),)
 CMAKE?=cmake3
 else
 CMAKE?=cmake
index 546164c..4f9c553 100644 (file)
@@ -18,7 +18,7 @@ sample-plugin_CPPFLAGS = $(call installed_includes_fn, vpp)
 sample-plugin_LDFLAGS = $(call installed_libs_fn, vpp)
 sample-plugin_PATH = $(call package_install_dir_fn,vpp)/bin
 
-ifneq ($(shell which cmake3),)
+ifneq ($(shell which cmake3 2>/dev/null),)
 CMAKE?=cmake3
 else
 CMAKE?=cmake
index cdd4065..62d35f1 100644 (file)
@@ -13,7 +13,7 @@
 
 vpp_source = src
 
-ifneq ($(shell which cmake3),)
+ifneq ($(shell which cmake3 2>/dev/null),)
 CMAKE?=cmake3
 else
 CMAKE?=cmake
index 88529a4..8f8a0a1 100644 (file)
@@ -41,7 +41,7 @@ L := $(WORKSPACE)/archives/install-deps-logs
 $(shell rm -rf $(L) && mkdir -p $(L))
 endif
 
-ifneq ($(shell which cmake3),)
+ifneq ($(shell which cmake3 2>/dev/null),)
 CMAKE?=cmake3
 else
 CMAKE?=cmake
index f284473..97fa900 100644 (file)
@@ -15,7 +15,7 @@ vom_configure_depend = vpp-install
 vom_source = extras
 vom_configure_subdir = vom
 
-ifneq ($(shell which cmake3),)
+ifneq ($(shell which cmake3 2>/dev/null),)
 CMAKE?=cmake3
 else
 CMAKE?=cmake