1 2 3 4 5 6
TAR ?= tar ifeq (,$(call suitable-host-package,tar,$(TAR))) DEPENDENCIES_HOST_PREREQ += host-tar TAR = $(HOST_DIR)/usr/bin/tar endif