[OpenWrt-Devel] [PATCH] image: append-ubi: add optional UBI subpage size

Claudio Leite leitec at staticky.com
Sat Nov 7 08:14:01 EST 2015


Signed-off-by: Claudio Leite <leitec at staticky.com>
---
This patch is necessary for the "kirkwood: revamp Linksys EA3500 & EA4500"
support" patch series submitted on 6 Nov.

 include/image.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/image.mk b/include/image.mk
index a6ea8e5..fd5e3f4 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
-- 
2.1.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list