support/test-pkg: calculate toolchain name only once
authorArnout Vandecappelle <arnout@mind.be>
Fri, 7 Apr 2017 11:16:16 +0000 (13:16 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 17 Apr 2017 13:54:22 +0000 (15:54 +0200)
commit92b10f63c57647488be7fb530afb543bb736ac66
tree1f54741a3b500b9fc5704b2e5a702e5a1f318754
parentc5b56b0a20b2be24878d8bae66fbe665e8fea698
support/test-pkg: calculate toolchain name only once

The toolchain name was calculated in main() for reporting to the user,
and again in build_one() for creating the build directory. Calculate
it only once, in main(), and pass the build directory as an argument
to build_one().

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/test-pkg