82327216cd61d38a991c525e6a90733c09a79791
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / support / dependencies / dependencies.mk
1 ################################################################################
2 #
3 # Check buildroot dependencies and bail out if the user's
4 # system is judged to be lacking....
5 #
6 ################################################################################
7
8 DEPENDENCIES_HOST_PREREQ :=
9
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))
18
19 ifeq ($(BR2_STRIP_sstrip),y)
20 DEPENDENCIES_HOST_PREREQ += host-sstrip
21 endif
22
23 ifeq ($(BR2_CCACHE),y)
24 DEPENDENCIES_HOST_PREREQ += host-ccache
25 endif
26
27 core-dependencies:
28         @HOSTCC="$(firstword $(HOSTCC))" MAKE="$(MAKE)" \
29                 DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \
30                 $(TOPDIR)/support/dependencies/dependencies.sh
31
32 dependencies: HOSTCC=$(HOSTCC_NOCCACHE)
33 dependencies: HOSTCXX=$(HOSTCXX_NOCCACHE)
34 dependencies: core-dependencies $(DEPENDENCIES_HOST_PREREQ)
35
36 ################################################################################
37 #
38 # Toplevel Makefile options
39 #
40 ################################################################################
41 .PHONY: dependencies core-dependencies