]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - support/dependencies/dependencies.mk
dependencies.mk: check for valid host-tar before other host dependencies
[coffee/buildroot.git] / 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 # 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))
14 endef
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)))
19
20 ifeq ($(BR2_CCACHE),y)
21 DEPENDENCIES_HOST_PREREQ += host-ccache
22 endif
23
24 core-dependencies:
25         @MAKE="$(MAKE)" DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \
26                 $(TOPDIR)/support/dependencies/dependencies.sh
27
28 $(DEPENDENCIES_HOST_PREREQ): HOSTCC=$(HOSTCC_NOCCACHE)
29 $(DEPENDENCIES_HOST_PREREQ): HOSTCXX=$(HOSTCXX_NOCCACHE)
30 $(DEPENDENCIES_HOST_PREREQ): core-dependencies
31
32 dependencies: core-dependencies $(DEPENDENCIES_HOST_PREREQ)
33
34 ################################################################################
35 #
36 # Toplevel Makefile options
37 #
38 ################################################################################
39 .PHONY: dependencies core-dependencies