makefile: Avoid objcopy --gap-fill for .hex/.srec
authorSam Edwards <cfsworks@gmail.com>
Sat, 15 Mar 2025 22:18:06 +0000 (15:18 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 2 Apr 2025 20:33:50 +0000 (14:33 -0600)
commit86838a1ddc8a0e5b5f548a5051e5e68f90fb6660
treea3c4267b47e68341567a33207d81790da2dd5aaa
parent8c39dc549b0de155c02a2b39f01dae19775f41a5
makefile: Avoid objcopy --gap-fill for .hex/.srec

This flag only makes sense for `binary` output, because .hex/.srec are
sparse formats and represent gaps without filler. While the GNU binutils
version of objcopy does not seem to mind the extra flag being passed,
llvm-objcopy considers this a fatal error.

There is already a version of the objcopy command template in the
Makefile that doesn't use --gap-fill, which is provided for EFI. So use
this other version for all .hex/.srec outputs as well.

Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Makefile