Add 'check_tool' function to new ports mechanism

Fixes #1254.
This commit is contained in:
Christian Prochaska
2014-09-18 16:06:53 +02:00
committed by Christian Helmuth
parent f0fae2a5f2
commit c41a102bc4
5 changed files with 14 additions and 5 deletions

View File

@@ -20,6 +20,11 @@
# XXX remove this line when the tool has stabilized
STRICT_HASH ?= no
#
# Utility to check if a tool is installed
#
check_tool = $(if $(shell which $(1)),,$(error Need to have '$(1)' installed.))
default:
# repository that contains the port description, used to look up patch files
@@ -45,6 +50,10 @@ include $(PORT)
#
include $(GENODE_DIR)/tool/ports/mk/common.inc
$(call check_tool,wget)
$(call check_tool,patch)
$(call check_tool, $(HASHSUM))
#
# Assertion for the presence of a LICENSE and VERSION declarations in the port
# description