base: add check_tool utility to build system

Fix genodelabs/genode#5213
This commit is contained in:
Stefan Kalkowski 2024-05-13 15:50:04 +02:00 committed by Christian Helmuth
parent dbd070b815
commit f0ec1adcd3

View File

@ -69,3 +69,8 @@ select_from_ports = $(call _checked_port_dir,$1)
else
select_from_ports = $(REP_DIR)
endif
#
# Utility to check for availability of a tool
#
check_tool = $(if $(shell command -v $(1)),,$(error Need to have '$(1)' installed.))