From: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com>
generate & add fit image to sdcard image. Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikar...@microchip.com> Signed-off-by: Sandeep Sheriker M <sandeep.sheri...@microchip.com> --- target/linux/at91/image/Makefile | 21 ++++++++++++--------- target/linux/at91/image/sam9x.mk | 10 +++++----- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/target/linux/at91/image/Makefile b/target/linux/at91/image/Makefile index 5b1433c..434fdbe 100644 --- a/target/linux/at91/image/Makefile +++ b/target/linux/at91/image/Makefile @@ -45,25 +45,26 @@ define Build/at91-sdcard rm -f $@.boot mkfs.fat -C $@.boot $(FAT32_BLOCKS) - mcopy -i $@.boot $(KDIR)/zImage ::zImage - - $(foreach dts,$(DEVICE_DTS), \ - mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \ - ::$(dts).dtb) - $(if $(findstring sama5,$(DEVICE_NAME)) , \ mcopy -i $@.boot \ $(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc/u-boot.bin \ - ::u-boot.bin + ::u-boot.bin mcopy -i $@.boot \ $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd*/at91bootstrap.bin \ - ::BOOT.bin , + ::BOOT.bin + + mcopy -i $@.boot \ + $(KDIR)/$(DEVICE_NAME)-fit-zImage.itb \ + ::$(DEVICE_NAME:at91-%=%)-fit.itb , mcopy -i $@.boot $(BIN_DIR)/u-boot-*_mmc/u-boot.bin ::u-boot.bin mcopy -i $@.boot \ - $(BIN_DIR)/at91bootstrap-*sd*/at91bootstrap.bin ::BOOT.bin) + $(BIN_DIR)/at91bootstrap-*sd*/at91bootstrap.bin ::BOOT.bin + + mcopy -i $@.boot \ + $(KDIR)/$(DEVICE_NAME)-fit-zImage.itb ::$(DEVICE_NAME)-fit.itb) ./gen_at91_sdcard_img.sh \ $@.img \ @@ -100,6 +101,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 diff --git a/target/linux/at91/image/sam9x.mk b/target/linux/at91/image/sam9x.mk index 561a8bf..a908712 100644 --- a/target/linux/at91/image/sam9x.mk +++ b/target/linux/at91/image/sam9x.mk @@ -12,7 +12,7 @@ endef TARGET_DEVICES += at91sam9263ek define Device/at91sam9g15ek - $(Device/evaluation) + $(Device/evaluation-dtb) DEVICE_TITLE := Atmel AT91SAM9G15-EK $(Device/evaluation-sdimage) endef @@ -31,14 +31,14 @@ endef TARGET_DEVICES += at91sam9g20ek_2mmc define Device/at91sam9g25ek - $(Device/evaluation) + $(Device/evaluation-dtb) DEVICE_TITLE := Atmel AT91SAM9G25-EK $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91sam9g25ek define Device/at91sam9g35ek - $(Device/evaluation) + $(Device/evaluation-dtb) DEVICE_TITLE := Atmel AT91SAM9G35-EK $(Device/evaluation-sdimage) endef @@ -51,14 +51,14 @@ endef TARGET_DEVICES += at91sam9m10g45ek define Device/at91sam9x25ek - $(Device/evaluation) + $(Device/evaluation-dtb) DEVICE_TITLE := Atmel AT91SAM9X25-EK $(Device/evaluation-sdimage) endef TARGET_DEVICES += at91sam9x25ek define Device/at91sam9x35ek - $(Device/evaluation) + $(Device/evaluation-dtb) DEVICE_TITLE := Atmel AT91SAM9X35-EK $(Device/evaluation-sdimage) endef -- 2.7.4 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel