dependencies.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ################################################################################
  2. #
  3. # Check buildroot dependencies and bail out if the user's
  4. # system is judged to be lacking....
  5. #
  6. ################################################################################
  7. ifeq ($(BR2_FORCE_HOST_BUILD),y)
  8. # ignore all available host packages
  9. define suitable-host-package
  10. endef
  11. else
  12. # suitable-host-pkg: calls check-host-$(1).sh shell script. Parameter (2)
  13. # can be the candidate to be checked. If not present, the check-host-$(1).sh
  14. # script should use 'which' to find a candidate. The script should return
  15. # the path to the suitable host tool, or nothing if no suitable tool was found.
  16. define suitable-host-package
  17. $(shell support/dependencies/check-host-$(1).sh $(2))
  18. endef
  19. endif
  20. # host utilities needs host-tar to extract the source code tarballs, so
  21. # ensure check-host-tar.mk is included before the rest
  22. include support/dependencies/check-host-tar.mk
  23. -include $(sort $(filter-out %-tar.mk,$(wildcard support/dependencies/check-host-*.mk)))
  24. dependencies:
  25. @MAKE="$(MAKE)" DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \
  26. $(TOPDIR)/support/dependencies/dependencies.sh
  27. ################################################################################
  28. #
  29. # Toplevel Makefile options
  30. #
  31. ################################################################################
  32. .PHONY: dependencies