summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-09-12 18:20:50 +0200
committerFelix Fietkau <nbd@nbd.name>2016-09-12 18:21:52 +0200
commitd27bce8d28eb129af0abd9c80a7756301b7d588a (patch)
tree8abfae3b1d00dd60a78ab0453ea026ea371974b4 /target
parentf3747020e202883a43729fc245986f9e36289d6c (diff)
downloadmtk-20170518-d27bce8d28eb129af0abd9c80a7756301b7d588a.zip
mtk-20170518-d27bce8d28eb129af0abd9c80a7756301b7d588a.tar.gz
mtk-20170518-d27bce8d28eb129af0abd9c80a7756301b7d588a.tar.bz2
build: drop UBI EOF marker from images by default
Only add them where they are actually required. Should help with compatibility issues with stock U-Boot images that access UBI Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target')
-rw-r--r--target/linux/bcm53xx/image/Makefile1
-rw-r--r--target/linux/imx6/image/Makefile1
-rw-r--r--target/linux/kirkwood/image/Makefile1
-rw-r--r--target/linux/mvebu/image/Makefile1
-rw-r--r--target/linux/ramips/image/mt7621.mk1
5 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/bcm53xx/image/Makefile b/target/linux/bcm53xx/image/Makefile
index 2f45a7b..e2665ac 100644
--- a/target/linux/bcm53xx/image/Makefile
+++ b/target/linux/bcm53xx/image/Makefile
@@ -85,7 +85,6 @@ define Device/Default
IMAGES := trx
BLOCKSIZE := 128k
PAGESIZE := 2048
- UBINIZE_OPTS :=
IMAGE/trx := append-ubi | trx-nand
endef
diff --git a/target/linux/imx6/image/Makefile b/target/linux/imx6/image/Makefile
index 86e3308..3ff1d36 100644
--- a/target/linux/imx6/image/Makefile
+++ b/target/linux/imx6/image/Makefile
@@ -94,7 +94,6 @@ define Device/ventana
kobs-ng
KERNEL += | boot-overlay
IMAGES := nand.ubi bootfs.tar.gz
- UBINIZE_OPTS :=
UBINIZE_PARTS = boot=$$(KDIR_KERNEL_IMAGE).boot.ubifs=15
IMAGE/nand.ubi := append-ubi
IMAGE/bootfs.tar.gz := bootfs.tar.gz | install-dtb
diff --git a/target/linux/kirkwood/image/Makefile b/target/linux/kirkwood/image/Makefile
index 33eaa4f..03a9873 100644
--- a/target/linux/kirkwood/image/Makefile
+++ b/target/linux/kirkwood/image/Makefile
@@ -28,6 +28,7 @@ define Device/Default
SUBPAGESIZE := 512
BLOCKSIZE := 128k
IMAGES := sysupgrade.tar
+ UBINIZE_OPTS := -E 5
IMAGE/sysupgrade.tar := sysupgrade-tar
endef
diff --git a/target/linux/mvebu/image/Makefile b/target/linux/mvebu/image/Makefile
index 7900fb9..c855cca 100644
--- a/target/linux/mvebu/image/Makefile
+++ b/target/linux/mvebu/image/Makefile
@@ -71,6 +71,7 @@ endef
define Device/UBI-factory
$(Device/UBI)
+ UBINIZE_OPTS := -E 5
IMAGES += factory.img
IMAGE/factory.img := append-kernel $$$$(KERNEL_SIZE) | append-ubi | pad-to $$$$(PAGESIZE)
endef
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index 769b86b..ceed8ab 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -146,6 +146,7 @@ define Device/wf-2881
FILESYSTEMS := squashfs
IMAGE_SIZE := 129280k
KERNEL := $(KERNEL_DTB) | pad-offset $$(BLOCKSIZE) 64 | uImage lzma
+ UBINIZE_OPTS := -E 5
IMAGE/sysupgrade.bin := append-kernel | append-ubi | check-size $$$$(IMAGE_SIZE)
DEVICE_TITLE := NETIS WF-2881
DEVICE_PACKAGES := kmod-usb3 kmod-ledtrig-usbdev