summaryrefslogtreecommitdiff
path: root/support/dependencies/dependencies.mk
diff options
context:
space:
mode:
authorThomas De Schampheleire <patrickdepinguin+buildroot@gmail.com>2012-02-08 17:22:16 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2012-02-09 21:45:59 +0100
commita792668b58fd5f551f30d40c2352f16011f1f92f (patch)
treef87f66a0a05c0003fc8aeeeec2e45a0b0bd84c03 /support/dependencies/dependencies.mk
parent1e39b8a6ff5ba330688bc1a60d1e509d716b6900 (diff)
dependencies: move from toolchain/ to support/
As suggested by Arnout Vandecappelle, move toolchain/dependencies to support/dependencies, as it really is not toolchain-specific anymore. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
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
+