aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/image
diff options
context:
space:
mode:
authorThomas Reifferscheid <thomas@reifferscheid.org>2017-02-21 20:58:38 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-26 13:32:26 +0100
commiteb09d79c163c9f9f913c57eed90d866e458d5ea7 (patch)
treedb1dff6ce527c793efe1cb5b5a5294ea744b534f /target/linux/ipq806x/image
parentb24d91faf1551cfe993c1c755f75d947f4ff74b0 (diff)
downloadupstream-eb09d79c163c9f9f913c57eed90d866e458d5ea7.tar.gz
upstream-eb09d79c163c9f9f913c57eed90d866e458d5ea7.tar.bz2
upstream-eb09d79c163c9f9f913c57eed90d866e458d5ea7.zip
ipq806x: sanitize Dni image generation
The more straight forward approach for generating the pure and unpadded kernel file which then can be used for initramfs straight. Build options for factory.img and sysupgrade.tar are handeled seperately. Signed-off-by: Thomas Reifferscheid <thomas@reifferscheid.org>
Diffstat (limited to 'target/linux/ipq806x/image')
-rw-r--r--target/linux/ipq806x/image/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/target/linux/ipq806x/image/Makefile b/target/linux/ipq806x/image/Makefile
index cec26c2142..70c8056d90 100644
--- a/target/linux/ipq806x/image/Makefile
+++ b/target/linux/ipq806x/image/Makefile
@@ -57,15 +57,14 @@ define Device/DniImage
PROFILES += $$(DEVICE_NAME)
FILESYSTEMS := squashfs
KERNEL_SUFFIX := -uImage
- KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none
- KERNEL = kernel-bin | append-dtb | uImage none | pad-offset $$(BLOCKSIZE) 64 | append-uImage-fakeroot-hdr | \
- pad-to $$(KERNEL_SIZE)
+ KERNEL = kernel-bin | append-dtb | uImage none
KERNEL_NAME := zImage
NETGEAR_BOARD_ID :=
NETGEAR_HW_ID :=
UBINIZE_OPTS := -E 5
IMAGES := factory.img sysupgrade.tar
- IMAGE/factory.img := append-kernel | append-ubi | netgear-dni
+ IMAGE/factory.img := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-uImage-fakeroot-hdr | pad-to $$$$(KERNEL_SIZE) | append-ubi | netgear-dni
+ IMAGE/sysupgrade.tar := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | append-uImage-fakeroot-hdr | sysupgrade-tar kernel=$$$$@ | append-metadata
endef
DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID