move all function definitions into the common-def script

This change moves all function definitions into the common-def script,
which now acts as a script header, and tf-cov-make just taking care of
make calls.

Also, a new function is defined (set_armclang_toolchain) which sets
correctly the armclang toolchain based on the (jenkins) environment.

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