boot/uboot/uboot.mk: allow installing u-boot.elf

This patch adds an option that allows to install the u-boot.elf file
produced when CONFIG_REMAKE_ELF=y in the U-Boot configuration.

Signed-off-by: Neal Frager <neal.frager@amd.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Neal Frager 2022-11-23 07:31:26 -07:00 committed by Thomas Petazzoni
parent f9ef3fbed5
commit d8c63011e2
2 changed files with 16 additions and 0 deletions

View File

@ -277,7 +277,19 @@ config BR2_TARGET_UBOOT_FORMAT_NAND_BIN
bool "u-boot-nand.bin"
config BR2_TARGET_UBOOT_FORMAT_ELF
bool "u-boot"
help
Install the u-boot image, which is directly the ELF binary
for the main U-Boot, potentially with debugging symbols.
config BR2_TARGET_UBOOT_FORMAT_REMAKE_ELF
bool "u-boot.elf"
help
Install the u-boot.elf image, which is produced when
CONFIG_REMAKE_ELF=y. It is an ELF image (u-boot.elf)
produced from the raw U-Boot binary (u-boot.bin), which may
already have been statically relocated and may already have
a device-tree appended to it.
config BR2_TARGET_UBOOT_FORMAT_IMG
bool "u-boot.img"

View File

@ -60,6 +60,10 @@ UBOOT_MAKE_TARGET += mdbtrick
endif
endif
ifeq ($(BR2_TARGET_UBOOT_FORMAT_REMAKE_ELF),y)
UBOOT_BINS += u-boot.elf
endif
# Call 'make all' unconditionally
UBOOT_MAKE_TARGET += all