dependencies.mk 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ################################################################################
  2. #
  3. # Check buildroot dependencies and bail out if the user's
  4. # system is judged to be lacking....
  5. #
  6. ################################################################################
  7. DEPENDENCIES_HOST_PREREQ :=
  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. -include $(sort $(wildcard support/dependencies/check-host-*.mk))
  16. ifeq ($(BR2_CCACHE),y)
  17. DEPENDENCIES_HOST_PREREQ += host-ccache
  18. endif
  19. core-dependencies:
  20. @HOSTCC="$(firstword $(HOSTCC))" MAKE="$(MAKE)" \
  21. DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \
  22. $(TOPDIR)/support/dependencies/dependencies.sh
  23. dependencies: HOSTCC=$(HOSTCC_NOCCACHE)
  24. dependencies: HOSTCXX=$(HOSTCXX_NOCCACHE)
  25. dependencies: core-dependencies $(DEPENDENCIES_HOST_PREREQ)
  26. ################################################################################
  27. #
  28. # Toplevel Makefile options
  29. #
  30. ################################################################################
  31. .PHONY: dependencies core-dependencies