image.mk: add support for specifying the VID header offset for UBI

Signed-off-by: Felix Fietkau <nbd@nbd.name>
master
Felix Fietkau 8 years ago
parent cd243b1090
commit 9a50a213d2
  1. 1
      include/image-commands.mk
  2. 3
      include/image.mk

@ -107,6 +107,7 @@ define Build/append-ubi
$@.tmp \ $@.tmp \
-p $(BLOCKSIZE) -m $(PAGESIZE) \ -p $(BLOCKSIZE) -m $(PAGESIZE) \
$(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \ $(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \
$(if $(VID_HDR_OFFSET),-O $(VID_HDR_OFFSET)) \
$(UBINIZE_OPTS) $(UBINIZE_OPTS)
cat $@.tmp >> $@ cat $@.tmp >> $@
rm $@.tmp rm $@.tmp

@ -295,6 +295,7 @@ define Device/Init
BLOCKSIZE := BLOCKSIZE :=
PAGESIZE := PAGESIZE :=
SUBPAGESIZE := SUBPAGESIZE :=
VID_HDR_OFFSET :=
UBINIZE_OPTS := -E 5 UBINIZE_OPTS := -E 5
MKUBIFS_OPTS := MKUBIFS_OPTS :=
@ -310,7 +311,7 @@ DEFAULT_DEVICE_VARS := \
DEVICE_NAME KERNEL KERNEL_INITRAMFS KERNEL_INITRAMFS_IMAGE \ DEVICE_NAME KERNEL KERNEL_INITRAMFS KERNEL_INITRAMFS_IMAGE \
DEVICE_DTS DEVICE_DTS_DIR \ DEVICE_DTS DEVICE_DTS_DIR \
UBOOTENV_IN_UBI KERNEL_IN_UBI \ UBOOTENV_IN_UBI KERNEL_IN_UBI \
BLOCKSIZE PAGESIZE SUBPAGESIZE \ BLOCKSIZE PAGESIZE SUBPAGESIZE VID_HDR_OFFSET \
UBINIZE_OPTS UBINIZE_OPTS
define Device/ExportVar define Device/ExportVar

Loading…
Cancel
Save