mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
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@kresin.me>
This commit is contained in:
parent
b99a93ebaf
commit
3e7524c184
@ -117,7 +117,7 @@ define Build/append-ubi
|
|||||||
$(foreach part,$(UBINIZE_PARTS),--part $(part)) \
|
$(foreach part,$(UBINIZE_PARTS),--part $(part)) \
|
||||||
$(IMAGE_ROOTFS) \
|
$(IMAGE_ROOTFS) \
|
||||||
$@.tmp \
|
$@.tmp \
|
||||||
-p $(BLOCKSIZE) -m $(PAGESIZE) \
|
-p $(BLOCKSIZE:%k=%KiB) -m $(PAGESIZE) \
|
||||||
$(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \
|
$(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \
|
||||||
$(if $(VID_HDR_OFFSET),-O $(VID_HDR_OFFSET)) \
|
$(if $(VID_HDR_OFFSET),-O $(VID_HDR_OFFSET)) \
|
||||||
$(UBINIZE_OPTS)
|
$(UBINIZE_OPTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user