diff options
Diffstat (limited to 'include/image-commands.mk')
-rw-r--r-- | include/image-commands.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/image-commands.mk b/include/image-commands.mk index 41a5e1198a..9ce97b17cf 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -138,9 +138,11 @@ UBI_NAND_SIZE_LIMIT = $(IMAGE_SIZE) - ($(NAND_SIZE)*20/1024 + 4*$(BLOCKSIZE)) define Build/append-ubi sh $(TOPDIR)/scripts/ubinize-image.sh \ $(if $(UBOOTENV_IN_UBI),--uboot-env) \ - $(if $(KERNEL_IN_UBI),--kernel $(IMAGE_KERNEL)) \ $(foreach part,$(UBINIZE_PARTS),--part $(part)) \ - --rootfs $(IMAGE_ROOTFS) \ + $(if $(findstring fit,$(1)), \ + $(if $(KERNEL_IN_UBI),--part fit=$(IMAGE_KERNEL)), \ + $(if $(KERNEL_IN_UBI),--kernel $(IMAGE_KERNEL)) \ + --rootfs $(IMAGE_ROOTFS)) \ $@.tmp \ -p $(BLOCKSIZE:%k=%KiB) -m $(PAGESIZE) \ $(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \ |