support/misc: Adding Vagrant file for provisioning
[buildroot-gz.git] / support / dependencies / dependencies.mk
blob82327216cd61d38a991c525e6a90733c09a79791
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))
16 endef
17 -include $(sort $(wildcard support/dependencies/check-host-*.mk))
19 ifeq ($(BR2_STRIP_sstrip),y)
20 DEPENDENCIES_HOST_PREREQ += host-sstrip
21 endif
23 ifeq ($(BR2_CCACHE),y)
24 DEPENDENCIES_HOST_PREREQ += host-ccache
25 endif
27 core-dependencies:
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