Commit d6962b42 authored by Sergei Poselenov's avatar Sergei Poselenov

RT #73025. ea-lpc1788: create u-boot.bin with checksum instead of

u-boot-lpc.bin.

For EA-LPC1788, the U-Boot image suitable for programming is u-boot-lpc.bin.
This is inconsistent with other supported targets, where the image is
u-boot.bin. This patch fixes this.
parent 6c05ceb4
......@@ -297,7 +297,7 @@ __LIBS := $(subst $(obj),,$(LIBS)) $(subst $(obj),,$(LIBBOARD))
#########################################################################
# Always append ALL so that arch config.mk's can add custom ones
ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND) $(U_BOOT_LPC178X_FCG)
ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
all: $(ALL)
......@@ -309,12 +309,10 @@ $(obj)u-boot.srec: $(obj)u-boot
$(obj)u-boot.bin: $(obj)u-boot
$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
$(obj)u-boot-lpc.bin: $(obj)u-boot.bin
ifeq ($(CONFIG_LPC178X_FCG),y)
$(obj)tools/lpc178x_fcg $(obj)u-boot.bin $(obj)u-boot-lpc.bin
$(obj)u-boot-lpc.hex: $(obj)u-boot-lpc.bin
$(OBJCOPY) ${OBJCFLAGS} -O ihex $< $@ -I binary
mv $(obj)u-boot-lpc.bin $(obj)u-boot.bin
endif
$(obj)u-boot.upgrade: $(obj)u-boot.bin
split -b 32768 -a 1 -d u-boot.bin u-boot.bin-
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment