[PATCH] Makefile: use --output-target instead of --target

Tom Rini trini at konsulko.com
Mon Dec 8 22:01:13 CET 2025


On Mon, Dec 08, 2025 at 09:47:38PM +0100, Heinrich Schuchardt wrote:

> The objcopy man-page teaches:
> 
>     --target=bfdname
>       Use bfdname as the object format for
>       both the input and the output file
> 
> This implies for --target=efi-app-x86_64 that the input file would have
> to be an EFI app.
> 
> Objcopy in binutils 2.45 checks this more strictly than previous versions
> and refuses to accept an ELF file as input with --target=efi-app-x86_64.
> 
> Replace --target by --output-target for building sandbox and x86 EFI
> binaries.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20251208/2fcf1e14/attachment.sig>


More information about the U-Boot mailing list