build: fix sizing the image during a clean build
The shell call to stat(1) is evaluted when the rule to build the image is triggered, at which point loader-stripped.elf does not exist yet. This causes stat to fail and the build to break. Fix by moving the creation of loader-stripped.elf to its own target, so that by the time the recipe is evaluated, the file is known to exist.
Please register or sign in to comment