uboot: support -b option for mkenvimage
PATCH v2 1/1 uboot: support -b option for mkenvimage
When generating the environment image the target endianess should be taken in account for CRC calculation purposes. For big endian targets the -b flag should be passed to the mkenvimage tool.
---
Changes v1 -> v2:
- removed unwanted space inside macro call
- changed 'findstring' to 'filter'
--- boot/uboot/uboot.mk | 1 + 1 file changed, 1 insertion(+)
boot/uboot/uboot.mk +1 -0
@@ -223,6 +223,7 @@ define UBOOT_INSTALL_IMAGES_CMDS cat $(call qstrip,$(BR2_TARGET_UBOOT_ENVIMAGE_SOURCE)) | \ $(HOST_DIR)/usr/bin/mkenvimage -s $(BR2_TARGET_UBOOT_ENVIMAGE_SIZE) \ $(if $(BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT),-r) \ + $(if $(filter BIG,$(BR2_ENDIAN)),-b) \ -o $(BINARIES_DIR)/uboot-env.bin -) endef
Signature · 1 line
1.9.1
PATCH v2 1/1 uboot: support -b option for mkenvimage
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Tiago" == Tiago Brusamarello <[email protected]> writes:
When generating the environment image the target endianess should be taken in account for CRC calculation purposes. For big endian targets the -b flag should be passed to the mkenvimage tool.
Quoted 6 lines
Signed-off-by Tiago Brusamarello <[email protected]>---
Changes v1 -> v2:
- removed unwanted space inside macro call
- changed 'findstring' to 'filter'
Committed after adding Arnout's Reviewed-by, thanks.
Signature · 1 line
Bye, Peter Korsgaard