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