]> git.ipfire.org Git - thirdparty/u-boot.git/commit
Makefile: use --output-target instead of --target
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 8 Dec 2025 20:47:38 +0000 (21:47 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 10 Dec 2025 15:06:13 +0000 (09:06 -0600)
commit7da7ca7cf50f4996493b99198e939726e721906d
treebcd46b14c46161807bf3eec1a63dc31123ad6dd0
parentfbfaf5f63e97a11cd01a8761e47f4c23915f89f6
Makefile: use --output-target instead of --target

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@canonical.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/sandbox/config.mk
arch/x86/config.mk