aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-11-07 13:19:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-11-07 13:19:35 +0000
commit86a46a817ba7cfab4963818f9c97508f1f835762 (patch)
tree1706e0e4ebe620ead760289cf17ec1047b8698c9 /include
parentbdbd0dce2ee27887c8fcba950090c664b828d703 (diff)
downloadupstream-86a46a817ba7cfab4963818f9c97508f1f835762.tar.gz
upstream-86a46a817ba7cfab4963818f9c97508f1f835762.tar.bz2
upstream-86a46a817ba7cfab4963818f9c97508f1f835762.zip
image: append-ubi: add optional UBI subpage size
Signed-off-by: Claudio Leite <leitec@staticky.com> SVN-Revision: 47411
Diffstat (limited to 'include')
-rw-r--r--include/image.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk
index a6ea8e5452..fd5e3f4b62 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -384,7 +384,8 @@ define Build/append-ubi
$(if $(KERNEL_IN_UBI),--kernel $(word 1,$^)) \
$(word 2,$^) \
$@.tmp \
- -p $(BLOCKSIZE) -m $(PAGESIZE) -E 5
+ -p $(BLOCKSIZE) -m $(PAGESIZE) -E 5 \
+ $(if $(SUBPAGESIZE),-s $(SUBPAGESIZE))
cat $@.tmp >> $@
rm $@.tmp
endef