tests: add top-level make dependency for docker builds
commit1a7fab926b3d9913149f3a859185cee7f27f767a
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 8 Jun 2018 11:12:46 +0000 (8 12:12 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 20 Jun 2018 21:13:32 +0000 (20 22:13 +0100)
tree56598c59bfbc313d0bc13e2f307250202c45c117
parentab93256144487a5f151635028080f1be5c9ccc6c
tests: add top-level make dependency for docker builds

One problem with satisfying your docker dependencies in a sub-make it
you might end up trying to satisfy the dependency multiple times. This
is especially a problem with debian-sid based cross compilers and CI
setups. We solve this by doing a docker build pass at the top level
before any sub-makes are called.

We still need to satisfy dependencies in the Makefile.target call so
people can run tests from individual target directories. We introduce
a new Makefile.probe which gets called for each PROBE_TARGET and
allows us to build up the list. It does require multiply including
config-target.mak which shouldn't cause any issues as it shouldn't
define anything that clashes with config-host.mak. However we undefine
a few key variables each time around.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
tests/Makefile.include
tests/tcg/Makefile.probe [new file with mode: 0644]