summaryrefslogtreecommitdiff
path: root/support/dependencies/dependencies.mk
diff options
context:
space:
mode:
Diffstat (limited to 'support/dependencies/dependencies.mk')
-rw-r--r--support/dependencies/dependencies.mk35
1 files changed, 35 insertions, 0 deletions
diff --git a/support/dependencies/dependencies.mk b/support/dependencies/dependencies.mk
new file mode 100644
index 000000000..3e621e9dd
--- /dev/null
+++ b/support/dependencies/dependencies.mk
@@ -0,0 +1,35 @@
+######################################################################
+#
+# Check buildroot dependencies and bail out if the user's
+# system is judged to be lacking....
+#
+######################################################################
+
+DEPENDENCIES_HOST_PREREQ:=
+ifeq ($(BR2_STRIP_sstrip),y)
+DEPENDENCIES_HOST_PREREQ+=host-sstrip
+endif
+
+core-dependencies:
+ @HOSTCC="$(firstword $(HOSTCC))" MAKE="$(MAKE)" \
+ CONFIG_FILE="$(CONFIG_DIR)/.config" \
+ DL_TOOLS="$(sort $(DL_TOOLS_DEPENDENCIES))" \
+ $(TOPDIR)/support/dependencies/dependencies.sh
+
+dependencies: core-dependencies $(DEPENDENCIES_HOST_PREREQ)
+
+dependencies-source:
+
+dependencies-clean:
+ rm -f $(SSTRIP_TARGET)
+
+dependencies-dirclean:
+ true
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+.PHONY: dependencies core-dependencies
+