From: Masami Hiramatsu <mhiramat@kernel.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH v2 0/3] bootconfig: Cleanup and reorder the init parameter from bootconfig
Date: Fri, 27 Aug 2021 11:16:07 +0900 [thread overview]
Message-ID: <163003056713.284890.5878333391812608469.stgit@devnote2> (raw)
Hi,
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
bootconfig.
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@kernel.org>
next reply other threads:[~2021-08-27 2:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-27 2:16 Masami Hiramatsu [this message]
2021-08-27 2:16 ` [PATCH v2 1/3] init: bootconfig: Remove all bootconfig data when the init memory is removed Masami Hiramatsu
2021-08-27 2:16 ` [PATCH v2 2/3] init/bootconfig: Reorder init parameter from bootconfig and cmdline Masami Hiramatsu
2021-08-27 2:16 ` [PATCH v2 3/3] docs: bootconfig: Add how to use bootconfig for kernel parameters Masami Hiramatsu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=163003056713.284890.5878333391812608469.stgit@devnote2 \
--to=mhiramat@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox