diff options
author | Tim Liang <tim.liang@advantech.com.tw> | 2020-10-13 16:15:20 +0800 |
---|---|---|
committer | Tim Liang <tim.liang@advantech.com.tw> | 2021-01-22 15:39:32 +0800 |
commit | 4649cec3bdc24d94689b2288ac81139b63045a7e (patch) | |
tree | dfe825616667def0adca94ae1c83a5d3e496a62e | |
parent | 6c9ee050f314f7f42610e47e7b2e33d929a9a3d9 (diff) |
[iMX6]Merge u-boot_crc.bin and u-boot_crc.bin.crc for Yocto
-rwxr-xr-x | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -848,7 +848,7 @@ endif # Always append ALL so that arch config.mk's can add custom ones ifeq ($(CONFIG_ARCH_MX6)$(CONFIG_ADVANTECH), yy) -ALL-y += u-boot.srec u-boot.bin u-boot_crc.bin u-boot.sym System.map u-boot.cfg binary_size_check +ALL-y += u-boot.srec u-boot.bin u-boot_crc.bin u-boot_crc_adv.bin u-boot.sym System.map u-boot.cfg binary_size_check else ALL-y += u-boot.srec u-boot.bin u-boot.sym System.map binary_size_check endif @@ -1251,6 +1251,12 @@ u-boot_crc.bin: u-boot.bin @/usr/bin/crc32 ./u-boot_crc.bin > ./u-boot_crc.bin.crc @rm -f ./mk_uboot_crc endif +ifeq ($(CONFIG_ARCH_MX6)$(CONFIG_ADVANTECH), yy) +u-boot_crc_adv.bin: u-boot_crc.bin + @touch u-boot_crc_adv.bin + @dd if=u-boot_crc.bin.crc of=u-boot_crc_adv.bin conv=fsync + @dd if=u-boot_crc.bin of=u-boot_crc_adv.bin bs=512 seek=1 conv=fsync +endif u-boot.ldr: u-boot $(CREATE_LDR_ENV) $(LDR) -T $(CONFIG_CPU) -c $@ $< $(LDR_FLAGS) |