From a84a74f618b0d3eadea622a45f62c9401c4f82ba Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 31 Jul 2016 18:34:02 +0200 Subject: scripts/ubinize-image.sh: add support for adding custom partitions Signed-off-by: Felix Fietkau --- include/image-commands.mk | 1 + include/image.mk | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/image-commands.mk b/include/image-commands.mk index 00cb3410e9..40a9619c31 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -114,6 +114,7 @@ define Build/append-ubi sh $(TOPDIR)/scripts/ubinize-image.sh \ $(if $(UBOOTENV_IN_UBI),--uboot-env) \ $(if $(KERNEL_IN_UBI),--kernel $(IMAGE_KERNEL)) \ + $(foreach part,$(UBINIZE_PARTS),--part $(part)) \ $(IMAGE_ROOTFS) \ $@.tmp \ -p $(BLOCKSIZE) -m $(PAGESIZE) \ diff --git a/include/image.mk b/include/image.mk index c85a9d6505..7079f18786 100644 --- a/include/image.mk +++ b/include/image.mk @@ -347,6 +347,7 @@ define Device/Init SUBPAGESIZE := VID_HDR_OFFSET := UBINIZE_OPTS := -E 5 + UBINIZE_PARTS := MKUBIFS_OPTS := FS_OPTIONS/ubifs = $$(MKUBIFS_OPTS) @@ -365,7 +366,7 @@ DEFAULT_DEVICE_VARS := \ DEVICE_DTS DEVICE_DTS_DIR BOARD_NAME CMDLINE \ UBOOTENV_IN_UBI KERNEL_IN_UBI \ BLOCKSIZE PAGESIZE SUBPAGESIZE VID_HDR_OFFSET \ - UBINIZE_OPTS UIMAGE_NAME + UBINIZE_OPTS UIMAGE_NAME UBINIZE_PARTS define Device/ExportVar $(1) : $(2):=$$($(2)) -- cgit v1.2.3