run-build.sh: Don't run post_build_cmd if BUILD_TARGET is set
This change is to restore previous behavior before splitting build commands
to cmake_build_cmd, post_build_cmd, etc. BUILD_TARGET was largely introduced
to debug long-running builds, e.g. for MISRA testing, by running some partial
build targets. As these are partial, complete set of result artifacts is not
available, and that's what post_build_cmd operates on.
A specific case seen is that with BUILD_TARGET=platform_ns, following error
appears
23:00:45 ++ srec_cat /home/buildslave/workspace/tf-m-eclair-daily/trusted-firmware-m/build/bin/bl2.bin -Binary -offset 0xA000000 -fill 0xFF 0xA000000 0xA020000 /home/buildslave/workspace/tf-m-eclair-daily/trusted-firmware-m/build/bin/tfm_s_ns_signed.bin -Binary -offset 0xA020000 -fill 0xFF 0xA020000 0xA200000 -o /home/buildslave/workspace/tf-m-eclair-daily/trusted-firmware-m/build/bin/tfm.hex -Intel
23:00:45 srec_cat:
23:00:45 /home/buildslave/workspace/tf-m-eclair-daily/trusted-firmware-m/build/bin/bl2.bin:
23:00:45 open: No such file or directory
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I464b1f4727ab02569736cf660f65431e676647b1
1 file changed