[source] image: allow devices to override the -E 5 ubinize option
LEDE Commits
lede-commits at lists.infradead.org
Thu Jul 14 02:23:35 PDT 2016
nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=b8fddb8912dfe1d2405b685680f7bb1a0b10937a
commit b8fddb8912dfe1d2405b685680f7bb1a0b10937a
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Wed Jul 13 17:23:00 2016 +0200
image: allow devices to override the -E 5 ubinize option
Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
include/image-commands.mk | 5 +++--
include/image.mk | 4 +++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/include/image-commands.mk b/include/image-commands.mk
index e8549d4..17ab46d 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -105,8 +105,9 @@ define Build/append-ubi
$(if $(KERNEL_IN_UBI),--kernel $(word 1,$^)) \
$(word 2,$^) \
$@.tmp \
- -p $(BLOCKSIZE) -m $(PAGESIZE) -E 5 \
- $(if $(SUBPAGESIZE),-s $(SUBPAGESIZE))
+ -p $(BLOCKSIZE) -m $(PAGESIZE) \
+ $(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \
+ $(UBINIZE_OPTS)
cat $@.tmp >> $@
rm $@.tmp
endef
diff --git a/include/image.mk b/include/image.mk
index a1e00df..bf5f0a6 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -327,6 +327,7 @@ define Device/Init
BLOCKSIZE :=
PAGESIZE :=
SUBPAGESIZE :=
+ UBINIZE_OPTS := -E 5
FILESYSTEMS := $(TARGET_FILESYSTEMS)
endef
@@ -334,7 +335,8 @@ endef
DEFAULT_DEVICE_VARS := \
DEVICE_NAME KERNEL KERNEL_INITRAMFS KERNEL_INITRAMFS_IMAGE \
UBOOTENV_IN_UBI KERNEL_IN_UBI \
- BLOCKSIZE PAGESIZE SUBPAGESIZE
+ BLOCKSIZE PAGESIZE SUBPAGESIZE \
+ UBINIZE_OPTS
define Device/ExportVar
$(1) : $(2):=$$($(2))
More information about the lede-commits
mailing list