build system: avoid more race conditions

In an abuild run, cbfstool is built in a shared directory
using "make tools". Unfortunately the build system doesn't
actually use that binary directly but creates a per-board
copy (for convenience purposes when editing the image later)
and uses that.

With this change the build system uses the original file but
still creates the copy for the user, avoiding the race while
ensuring convenience.

Change-Id: I38c603a7eca5ef859875ad3031bf7a850189645f
Signed-off-by: Patrick Georgi <>
Reviewed-by: Paul Menzel <>
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <>
Reviewed-by: Kyösti Mälkki <>
1 file changed