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_STRIP_sstrip
),y
)
20 DEPENDENCIES_HOST_PREREQ
+= host-sstrip
23 ifeq ($(BR2_CCACHE
),y
)
24 DEPENDENCIES_HOST_PREREQ
+= host-ccache
28 @HOSTCC
="$(firstword $(HOSTCC))" MAKE
="$(MAKE)" \
29 DL_TOOLS
="$(sort $(DL_TOOLS_DEPENDENCIES))" \
30 $(TOPDIR
)/support
/dependencies
/dependencies.sh
32 dependencies
: HOSTCC
=$(HOSTCC_NOCCACHE
)
33 dependencies
: HOSTCXX
=$(HOSTCXX_NOCCACHE
)
34 dependencies
: core-dependencies
$(DEPENDENCIES_HOST_PREREQ
)
36 ################################################################################
38 # Toplevel Makefile options
40 ################################################################################
41 .PHONY
: dependencies core-dependencies