mirror of https://github.com/hak5/openwrt-owl.git
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>owl
parent
b24d91faf1
commit
eb09d79c16
|
@ -57,15 +57,14 @@ define Device/DniImage
|
||||||
PROFILES += $$(DEVICE_NAME)
|
PROFILES += $$(DEVICE_NAME)
|
||||||
FILESYSTEMS := squashfs
|
FILESYSTEMS := squashfs
|
||||||
KERNEL_SUFFIX := -uImage
|
KERNEL_SUFFIX := -uImage
|
||||||
KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none
|
KERNEL = 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_NAME := zImage
|
KERNEL_NAME := zImage
|
||||||
NETGEAR_BOARD_ID :=
|
NETGEAR_BOARD_ID :=
|
||||||
NETGEAR_HW_ID :=
|
NETGEAR_HW_ID :=
|
||||||
UBINIZE_OPTS := -E 5
|
UBINIZE_OPTS := -E 5
|
||||||
IMAGES := factory.img sysupgrade.tar
|
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
|
endef
|
||||||
DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
|
DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue