1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# Check buildroot dependencies and bail out if the user's 4*4882a593Smuzhiyun# system is judged to be lacking.... 5*4882a593Smuzhiyun# 6*4882a593Smuzhiyun################################################################################ 7*4882a593Smuzhiyun 8*4882a593Smuzhiyunifeq ($(BR2_FORCE_HOST_BUILD),y) 9*4882a593Smuzhiyun# ignore all available host packages 10*4882a593Smuzhiyundefine suitable-host-package 11*4882a593Smuzhiyunendef 12*4882a593Smuzhiyunelse 13*4882a593Smuzhiyun# suitable-host-pkg: calls check-host-$(1).sh shell script. Parameter (2) 14*4882a593Smuzhiyun# can be the candidate to be checked. If not present, the check-host-$(1).sh 15*4882a593Smuzhiyun# script should use 'which' to find a candidate. The script should return 16*4882a593Smuzhiyun# the path to the suitable host tool, or nothing if no suitable tool was found. 17*4882a593Smuzhiyundefine suitable-host-package 18*4882a593Smuzhiyun$(if $(1),$(shell support/dependencies/check-host-$(1).sh $(2))) 19*4882a593Smuzhiyunendef 20*4882a593Smuzhiyunendif 21*4882a593Smuzhiyun# host utilities needs host-tar to extract the source code tarballs, so 22*4882a593Smuzhiyun# ensure check-host-tar.mk is included before the rest 23*4882a593Smuzhiyuninclude support/dependencies/check-host-tar.mk 24*4882a593Smuzhiyun-include $(sort $(filter-out %-tar.mk,$(wildcard support/dependencies/check-host-*.mk))) 25*4882a593Smuzhiyun 26*4882a593Smuzhiyundependencies: 27*4882a593Smuzhiyun @MAKE="$(MAKE)" DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \ 28*4882a593Smuzhiyun $(TOPDIR)/support/dependencies/dependencies.sh 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun################################################################################ 31*4882a593Smuzhiyun# 32*4882a593Smuzhiyun# Toplevel Makefile options 33*4882a593Smuzhiyun# 34*4882a593Smuzhiyun################################################################################ 35*4882a593Smuzhiyun.PHONY: dependencies 36