Explorar o código

at91:sama5: create fit image

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

Signed-off-by: Sandeep Sheriker M <[email protected]>
Sandeep Sheriker M %!s(int64=6) %!d(string=hai) anos
pai
achega
612e9ed7b8
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  1. 2 0
      target/linux/at91/image/Makefile
  2. 3 1
      target/linux/at91/image/sama5.mk

+ 2 - 0
target/linux/at91/image/Makefile

@@ -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

+ 3 - 1
target/linux/at91/image/sama5.mk

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