aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tcg/Makefile.prereqs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/Makefile.prereqs')
-rw-r--r--tests/tcg/Makefile.prereqs18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/tcg/Makefile.prereqs b/tests/tcg/Makefile.prereqs
new file mode 100644
index 000000000..9a29604a8
--- /dev/null
+++ b/tests/tcg/Makefile.prereqs
@@ -0,0 +1,18 @@
+# -*- Mode: makefile -*-
+#
+# TCG Compiler Probe
+#
+# This Makefile fragment is included multiple times in the main make
+# script to probe for available compilers. This is used to build up a
+# selection of required docker targets before we invoke a sub-make for
+# each target.
+
+DOCKER_IMAGE:=
+
+-include $(BUILD_DIR)/tests/tcg/config-$(PROBE_TARGET).mak
+
+ifneq ($(DOCKER_IMAGE),)
+build-tcg-tests-$(PROBE_TARGET): docker-image-$(DOCKER_IMAGE)
+endif
+$(BUILD_DIR)/tests/tcg/config_$(PROBE_TARGET).mak: config-host.mak
+config-host.mak: $(SRC_PATH)/tests/tcg/configure.sh