[source] image: add support for k unit suffix to append-ubi

LEDE Commits lede-commits at lists.infradead.org
Fri Sep 9 03:34:51 PDT 2016


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/3e7524c184d147de6b0c8154c5c4f4019993922f

commit 3e7524c184d147de6b0c8154c5c4f4019993922f
Author: Mathias Kresin <dev at kresin.me>
AuthorDate: Sun Sep 4 08:51:58 2016 +0200

    image: add support for k unit suffix to append-ubi
    
    Allows to use the same unit for all definitions of the blocksize to be
    consistent regardless of the used filesystem.
    
    Signed-off-by: Mathias Kresin <dev at kresin.me>
---
 include/image-commands.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/image-commands.mk b/include/image-commands.mk
index 3b9ea3c..6cb5bff 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -117,7 +117,7 @@ define Build/append-ubi
 		$(foreach part,$(UBINIZE_PARTS),--part $(part)) \
 		$(IMAGE_ROOTFS) \
 		$@.tmp \
-		-p $(BLOCKSIZE) -m $(PAGESIZE) \
+		-p $(BLOCKSIZE:%k=%KiB) -m $(PAGESIZE) \
 		$(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \
 		$(if $(VID_HDR_OFFSET),-O $(VID_HDR_OFFSET)) \
 		$(UBINIZE_OPTS)



More information about the lede-commits mailing list