at91:sama5: create fit image
authorSandeep Sheriker M <sandeep.sheriker@microchip.com>
Wed, 11 Sep 2019 18:35:55 +0000 (18:35 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 20 Sep 2019 23:09:22 +0000 (01:09 +0200)
create fit image & add it to sdcard image for sama5 target
device.

Signed-off-by: Sandeep Sheriker M <sandeep.sheriker@microchip.com>
target/linux/at91/image/Makefile
target/linux/at91/image/sama5.mk

index 3b01d421310b6c2c90073dcc46962098b8d1c148..adb7c6d0ba5c30bda3efc3308973a9c51af4cb78 100644 (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
index a737ba508b61ce446665b6433645f1e3a4e2fbb8..1e4366cefa557c002cbc4672cde6ba99cfff3108 100644 (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 \