at91:sama5: create fit image

create fit image & add it to sdcard image for sama5 target
device.

Signed-off-by: Sandeep Sheriker M <sandeep.sheriker@microchip.com>
This commit is contained in:
Sandeep Sheriker M 2019-09-11 18:35:55 +00:00 committed by Hauke Mehrtens
parent ab19627ecc
commit 612e9ed7b8
2 changed files with 5 additions and 1 deletions

View File

@ -63,6 +63,8 @@ define Device/evaluation-dtb
$(Device/evaluation-zImage)
IMAGES += dtb
IMAGE/dtb := install-dtb
KERNEL_SUFFIX := -fit-zImage.itb
KERNEL := kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
endef
define Device/evaluation-fit

View File

@ -11,7 +11,9 @@ define Build/at91-sdcard
rm -f $@.boot
mkfs.fat -C $@.boot $(FAT32_BLOCKS)
mcopy -i $@.boot $(KDIR)/zImage ::zImage
mcopy -i $@.boot \
$(KDIR)/$(DEVICE_NAME)-fit-zImage.itb \
::$(DEVICE_NAME:at91-%=%)-fit.itb
$(if $(findstring at91-sama5d27_som1_ek,$@), \
mcopy -i $@.boot \