build: image: add append-dtb-elf helper
authorJohn Thomson <git@johnthomson.fastmail.com.au>
Thu, 15 Oct 2020 09:06:41 +0000 (19:06 +1000)
committerChuanhong Guo <gch981213@gmail.com>
Thu, 29 Oct 2020 13:35:03 +0000 (21:35 +0800)
commit9a168b51c3a60c95ccd349dd3010615ba6b0e033
tree923183433924f4998c1d6ed9c58740ab87f1637d
parentc063e27e02a9dcac0e7f5877fb154e58fa3e1a69
build: image: add append-dtb-elf helper

The mips kernel vmlinux image supports adding an empty ELF section
for DTB to be later inserted into with MIPS_ELF_APPENDED_DTB.

This ELF + inserted DTB image can then be directly booted on some
devices.

Example usage:
image/subtarget.mk:
KERNEL_NAME := vmlinux.elf
KERNEL_INITRAMFS_NAME := vmlinux-initramfs.elf
KERNEL := kernel-bin | append-dtb-elf

On mt7621 memory size needed to be manually specified.

Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
include/image-commands.mk