aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-10-14 21:11:58 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-10-14 21:11:58 +0200
commitd6fcf044a747284df4eddaf106082ebb571976b3 (patch)
treed1473a779d67c4fe36f3914b30edaa022a08d82d
parent671ede36f5a1b458c5b00d887585fe8a06b6bc7c (diff)
downloadbuildroot-d6fcf044a747284df4eddaf106082ebb571976b3.tar.gz
buildroot-d6fcf044a747284df4eddaf106082ebb571976b3.tar.bz2
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>
-rw-r--r--boot/uboot/uboot.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index c5abc125f3..fa92eafff5 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -267,7 +267,7 @@ define UBOOT_GENERATE_ENV_IMAGE
>$(@D)/buildroot-env.txt
$(HOST_DIR)/bin/mkenvimage -s $(BR2_TARGET_UBOOT_ENVIMAGE_SIZE) \
$(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 \
$(@D)/buildroot-env.txt
endef