[PATCH v2 0/3] bootconfig: Cleanup and reorder the init parameter from bootconfig

From: Masami Hiramatsu
Date: Thu Aug 26 2021 - 22:16:11 EST


Here are the 2nd version of the patches to update the bootconfig.
The 1st one is for bootconfig memory cleanup when exiting init stage.
The 2nd one and 3rd one are for reordering the init parameters from
Since the current kernel concatenate the kernel cmdline and the
bootconfig parameters as below.

[bootconfig kernel params][cmdline] -- [init cmdline][bootconfig init params]

This is bit odd because for the kernel parameters, user passed cmdline
can override the previous (bootconfig) one, but for the init cmdline,
bootconfig may override the parameter.
Thus, this series invert the order as the following.

[bootconfig kernel params][cmdline] -- [bootconfig init params][init cmdline]

The 3rd patch is adding how to use the bootconfig for passing kernel
and init parameters.

Changes in v2:
- introduce exit_boot_config() wrapper for !CONFIG_BOOT_CONFIG.

Thank you,


Masami Hiramatsu (3):
init: bootconfig: Remove all bootconfig data when the init memory is removed
init/bootconfig: Reorder init parameter from bootconfig and cmdline
docs: bootconfig: Add how to use bootconfig for kernel parameters

Documentation/admin-guide/bootconfig.rst | 39 +++++++++++++++++++++++++++++-
init/main.c | 37 ++++++++++++++++++++--------
2 files changed, 64 insertions(+), 12 deletions(-)

Masami Hiramatsu (Linaro) <mhiramat@xxxxxxxxxx>