diff options
author | Aaro Koskinen <aaro.koskinen@nokia.com> | 2015-09-11 17:46:14 +0300 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-11-12 11:35:48 +0100 |
commit | 87db537da4cd1bfad388511a3647bbb497d2fb61 (patch) | |
tree | 68332abad3fa7ec4f239dbad95cd65756a685fe6 /arch/mips/Kconfig | |
parent | d00d920338382ceaefc643760daf9936ae9c5788 (diff) | |
download | linux-stable-87db537da4cd1bfad388511a3647bbb497d2fb61.tar.gz linux-stable-87db537da4cd1bfad388511a3647bbb497d2fb61.tar.bz2 linux-stable-87db537da4cd1bfad388511a3647bbb497d2fb61.zip |
MIPS: vmlinux: create a section for appended DTB
For bootloaders that support booting only ELF kernels and load only ELF
segments to memory there is no easy way to supply DTB without kernel
recompilation. For that purpose, create a section called .appended_dtb
that can be later updated with board-specific DTB using binutils e.g. at
kernel installation time.
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11114/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r-- | arch/mips/Kconfig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 218aa67a2c52..71683a853372 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -2736,6 +2736,20 @@ choice help Do not enable appended dtb support. + config MIPS_ELF_APPENDED_DTB + bool "vmlinux" + help + With this option, the boot code will look for a device tree binary + DTB) included in the vmlinux ELF section .appended_dtb. By default + it is empty and the DTB can be appended using binutils command + objcopy: + + objcopy --update-section .appended_dtb=<filename>.dtb vmlinux + + This is meant as a backward compatiblity convenience for those + systems with a bootloader that can't be upgraded to accommodate + the documented boot protocol using a device tree. + config MIPS_RAW_APPENDED_DTB bool "vmlinux.bin" help |