2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 10:44:14 +08:00
linux-next/tools/bootconfig
Masami Hiramatsu 85c46b78da bootconfig: Add bootconfig magic word for indicating bootconfig explicitly
Add bootconfig magic word to the end of bootconfig on initrd
image for indicating explicitly the bootconfig is there.
Also tools/bootconfig treats wrong size or wrong checksum or
parse error as an error, because if there is a bootconfig magic
word, there must be a bootconfig.

The bootconfig magic word is "#BOOTCONFIG\n", 12 bytes word.
Thus the block image of the initrd file with bootconfig is
as follows.

[Initrd][bootconfig][size][csum][#BOOTCONFIG\n]

Link: http://lkml.kernel.org/r/158220112263.26565.3944814205960612841.stgit@devnote2

Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2020-02-20 17:52:34 -05:00
..
include/linux bootconfig: Allocate xbc_nodes array dynamically 2020-02-10 17:19:39 -05:00
samples tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
.gitignore
main.c bootconfig: Add bootconfig magic word for indicating bootconfig explicitly 2020-02-20 17:52:34 -05:00
Makefile tools: bootconfig: Add bootconfig test script 2020-01-13 13:19:39 -05:00
test-bootconfig.sh bootconfig: Add bootconfig magic word for indicating bootconfig explicitly 2020-02-20 17:52:34 -05:00