Remove dependency from 'which' utility

Debian declared the 'which' utility as deprecated.

Fixes #4319
This commit is contained in:
Norman Feske
2021-11-08 21:15:54 +01:00
committed by Christian Helmuth
parent 293d545b97
commit 4cfd954e1e
4 changed files with 6 additions and 9 deletions

View File

@@ -31,4 +31,4 @@ MSG_GIT := $(MSG_PREFIX_TXT)git
#
# Utility to check if a tool is installed
#
check_tool = $(if $(shell which $(1)),,$(error Need to have '$(1)' installed.))
check_tool = $(if $(shell command -v $(1)),,$(error Need to have '$(1)' installed.))