1 ################################################################################
3 # Check buildroot dependencies and bail out if the user's
4 # system is judged to be lacking....
6 ################################################################################
8 # suitable-host-pkg: calls check-host-$(1).sh shell script. Parameter (2)
9 # can be the candidate to be checked. If not present, the check-host-$(1).sh
10 # script should use 'which' to find a candidate. The script should return
11 # the path to the suitable host tool, or nothing if no suitable tool was found.
12 define suitable-host-package
13 $(shell support/dependencies/check-host-$(1).sh $(2))
15 # host utilities needs host-tar to extract the source code tarballs, so
16 # ensure check-host-tar.mk is included before the rest
17 include support/dependencies/check-host-tar.mk
18 -include $(sort $(filter-out %-tar.mk,$(wildcard support/dependencies/check-host-*.mk)))
20 ifeq ($(BR2_CCACHE),y)
21 DEPENDENCIES_HOST_PREREQ += host-ccache
25 @MAKE="$(MAKE)" DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \
26 $(TOPDIR)/support/dependencies/dependencies.sh
28 $(DEPENDENCIES_HOST_PREREQ): HOSTCC=$(HOSTCC_NOCCACHE)
29 $(DEPENDENCIES_HOST_PREREQ): HOSTCXX=$(HOSTCXX_NOCCACHE)
30 $(DEPENDENCIES_HOST_PREREQ): core-dependencies
32 dependencies: core-dependencies $(DEPENDENCIES_HOST_PREREQ)
34 ################################################################################
36 # Toplevel Makefile options
38 ################################################################################
39 .PHONY: dependencies core-dependencies