blob: df26bf7ca6178bbdc1acb2947194f5f8beb6fbd2 [file] [log] [blame]
developerbc730da2022-04-06 16:37:51 +08001--- a/include/image-commands.mk
2+++ b/include/image-commands.mk
3@@ -203,7 +203,8 @@ define Build/fit
4 -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
5 $(if $(DEVICE_FDT_NUM),-n $(DEVICE_FDT_NUM)) \
6 -c $(if $(DEVICE_DTS_CONFIG),$(DEVICE_DTS_CONFIG),"config-1") \
7- -A $(LINUX_KARCH) -v $(LINUX_VERSION)
8+ -A $(LINUX_KARCH) -v $(LINUX_VERSION) \
9+ $(if $(CONFIG_TARGET_ROOTFS_SQUASHFS),-R $(ROOTFS/squashfs/$(DEVICE_NAME)))
10 PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new
11 @mv $@.new $@
12 endef