u-boot: Add U-Boot ELF SREC install and deploy
PATCH 1/1 u-boot: Add U-Boot ELF SREC install and deploy
Add support for U-Boot recipes to install and deploy the generated ELF converted into SREC files for each config. The U-Boot ELF converted to SREC are useful for SCIF loader booting.
This additional feature is disabled by default, machines/etc that want to use it need to set UBOOT_ELF_SREC to the corresponding ELF SREC file (generally u-boot-elf.srec).
---
Cc: Fabio Estevam <[email protected]>
--- meta/classes-recipe/uboot-config.bbclass | 8 +++ meta/recipes-bsp/u-boot/u-boot.inc | 77 ++++++++++++++++++++++++ 2 files changed, 85 insertions(+)
meta/classes-recipe/uboot-config.bbclass +8 -0
@@ -73,6 +73,14 @@ UBOOT_ELF_IMAGE ?= "u-boot-${MACHINE}-${UBOOT_VERSION}.${UBOOT_ELF_SUFFIX}" UBOOT_ELF_BINARY ?= "u-boot.${UBOOT_ELF_SUFFIX}" UBOOT_ELF_SYMLINK ?= "u-boot-${MACHINE}.${UBOOT_ELF_SUFFIX}" +# Output the ELF converted into SREC generated. Some platforms can use the ELF +# converted into SREC file and directly load it (SCIF loader). +UBOOT_ELF_SREC ?= "" +UBOOT_ELF_SREC_SUFFIX ?= "srec" +UBOOT_ELF_SREC_IMAGE ?= "u-boot-elf-${MACHINE}-${UBOOT_VERSION}.${UBOOT_ELF_SREC_SUFFIX}" +UBOOT_ELF_SREC_BINARY ?= "u-boot-elf.${UBOOT_ELF_SREC_SUFFIX}" +UBOOT_ELF_SREC_SYMLINK ?= "u-boot-elf-${MACHINE}.${UBOOT_ELF_SREC_SUFFIX}" + # Some versions of u-boot build an SPL (Second Program Loader) image that # should be packaged along with the u-boot binary as well as placed in the # deploy directory. For those versions they can set the following variables
meta/recipes-bsp/u-boot/u-boot.inc +77 -0
101 lines not on this page · raw message
Signature · 1 line
2.53.0
Quoted 8 lines · Marek Vasut via openembedded-core
Add support for U-Boot recipes to install and deploy the generated ELF converted into SREC files for each config. The U-Boot ELF converted to SREC are useful for SCIF loader booting.
This additional feature is disabled by default, machines/etc that want to use it need to set
UBOOT_ELF_SRECto the corresponding ELF SREC file (generally u-boot-elf.srec).
As this is disabled by default, can you add a test case to oe-selftest to verify that the right files are generated?
Cheers,
Ross
Quoted 11 lines · Ross Burton
Quoted 8 lines · Marek Vasut via openembedded-core
Add support for U-Boot recipes to install and deploy the generated ELF converted into SREC files for each config. The U-Boot ELF converted to SREC are useful for SCIF loader booting.
This additional feature is disabled by default, machines/etc that want to use it need to set
UBOOT_ELF_SRECto the corresponding ELF SREC file (generally u-boot-elf.srec).As this is disabled by default, can you add a test case to oe-selftest to verify that the right files are generated?
Done, posted as patches [1] and [2].
[1] https://lists.openembedded.org/g/openembedded-core/message/251510
[2] https://lists.openembedded.org/g/openembedded-core/message/251511
Signature · 2 lines
Best regards, Marek Vasut