Skip to contentSkip to conversation

uboot: support -b option for mkenvimage

PATCH New Tiago Brusamarello 2 participants 2 messages Nov 30, 2016

lore
Share & tools
lore
#0 lore raw

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
index 3e347c1..6b9d544 100644
@@ -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
#1 lore raw

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

---
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