dependencies.mk 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_STRIP_sstrip),y)
  17. DEPENDENCIES_HOST_PREREQ+=host-sstrip
  18. endif
  19. ifeq ($(BR2_CCACHE),y)
  20. DEPENDENCIES_HOST_PREREQ += host-ccache
  21. endif
  22. core-dependencies:
  23. @HOSTCC="$(firstword $(HOSTCC))" MAKE="$(MAKE)" \
  24. DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \
  25. $(TOPDIR)/support/dependencies/dependencies.sh
  26. dependencies: HOSTCC=$(HOSTCC_NOCCACHE)
  27. dependencies: HOSTCXX=$(HOSTCXX_NOCCACHE)
  28. dependencies: core-dependencies $(DEPENDENCIES_HOST_PREREQ)
  29. dependencies-source:
  30. dependencies-clean:
  31. rm -f $(SSTRIP_TARGET)
  32. dependencies-dirclean:
  33. true
  34. ################################################################################
  35. #
  36. # Toplevel Makefile options
  37. #
  38. ################################################################################
  39. .PHONY: dependencies core-dependencies