mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
boot/uboot: fix environment image generation on big endian systems
As reported by Jeff Wittrock in bug #11396, the U-Boot environment
image checksum is invalid for big endian targets, because the test on
the BR2_ENDIAN Config.in option doesn't take into account that it is
double quoted.
The fix was provided by Jeff himself on bugzilla.
Fixes bug #11396.
Reported-by: Jeff Wittrock <jwittrock@faultrecorder.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit d6fcf044a7)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
323255f36a
commit
a37a50e0b8
@@ -262,7 +262,7 @@ define UBOOT_GENERATE_ENV_IMAGE
|
|||||||
>$(@D)/buildroot-env.txt
|
>$(@D)/buildroot-env.txt
|
||||||
$(HOST_DIR)/bin/mkenvimage -s $(BR2_TARGET_UBOOT_ENVIMAGE_SIZE) \
|
$(HOST_DIR)/bin/mkenvimage -s $(BR2_TARGET_UBOOT_ENVIMAGE_SIZE) \
|
||||||
$(if $(BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT),-r) \
|
$(if $(BR2_TARGET_UBOOT_ENVIMAGE_REDUNDANT),-r) \
|
||||||
$(if $(filter BIG,$(BR2_ENDIAN)),-b) \
|
$(if $(filter "BIG",$(BR2_ENDIAN)),-b) \
|
||||||
-o $(BINARIES_DIR)/uboot-env.bin \
|
-o $(BINARIES_DIR)/uboot-env.bin \
|
||||||
$(@D)/buildroot-env.txt
|
$(@D)/buildroot-env.txt
|
||||||
endef
|
endef
|
||||||
|
|||||||
Reference in New Issue
Block a user