fvp jobs: refactor yaml generation

Current yaml generation is static: templates consider only subset of
possibe artefacts (.bin files) leading to multiple failures mostly
related to missing binaries required from the model parameters [1].

The proposed approach considers all possible artifacts in the
templates then based on the model parameters, keeps the ones
needed. (Hash) Arrays are being used to keep track of variables and
URL values, making much more scalable and readable. As a secondary
change: shorter macro names are used in both templates and the
possibility to pass a different (Linux) 'prompt' depending on the
model.

In general, this is full refactor of the yaml generation code, this
time aware of all possible artifacts, improving code for easier future
maintenance.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Change-Id: I6bd89caee065849fe7422653c29e7bba6cb322b9
3 files changed