buildscript: Remove target binaries from build dir before building
So far, if build fails, but images from last successful build are present in OpenWrt build directory (build/bin/targets/...), those are copied even after unsuccessful build. This results in the old images being copied to the bin folder and being labelled with the new firmware revision. (!) As our error check also only looks at whether images are there, the image copying process will look like a success. This patch deletes old images of the target/subtarget to be built, so that the copy-firmware step will find nothing if the build stop to early. Signed-off-by:Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de>
Loading
Please register or sign in to comment