From: Steffen Trumtrar <s.trumtrar@pengutronix.de>
To: barebox@lists.infradead.org, Sascha Hauer <s.hauer@pengutronix.de>
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Subject: [PATCH 4/4] defaultenv: devboot: add devboot_bootconfig
Date: Tue, 27 Oct 2026 14:23:56 +0100 [thread overview]
Message-ID: <20261027-v2026-10-0-topic-bootconfig-v1-4-2758d3d9a165@pengutronix.de> (raw)
In-Reply-To: <20261027-v2026-10-0-topic-bootconfig-v1-0-2758d3d9a165@pengutronix.de>
Passed on as -o bootm.bootconfig, like devboot_initrd.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
Documentation/user/devboot.rst | 5 +++++
defaultenv/defaultenv-2-base/bin/devboot | 6 +++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/Documentation/user/devboot.rst b/Documentation/user/devboot.rst
index fce8398b22..ec676f2998 100644
--- a/Documentation/user/devboot.rst
+++ b/Documentation/user/devboot.rst
@@ -177,6 +177,11 @@ variables:
Override for ``bootm.initrd``. A leading colon appends to the boot
entry's existing initrd.
+``devboot_bootconfig``
+ Override for ``bootm.bootconfig``: a Linux bootconfig file, appended to
+ the initrd or, without one, passed alone as the initrd
+ (``CONFIG_BOOTM_BOOTCONFIG``). An empty string removes it.
+
Variables that are not set (using ``[[ -v ... ]]``) are left alone,
so unset variables do not generate override arguments.
diff --git a/defaultenv/defaultenv-2-base/bin/devboot b/defaultenv/defaultenv-2-base/bin/devboot
index 1a43246337..92f98c6f00 100644
--- a/defaultenv/defaultenv-2-base/bin/devboot
+++ b/defaultenv/defaultenv-2-base/bin/devboot
@@ -14,7 +14,7 @@ if [ ! -f "${devboot_script}" ]; then
if [ ! -f "${devboot_script2}" ]; then
echo "Error: Neither ${devboot_script} nor ${devboot_script2} found"
echo "Create one of them and set as needed:"
- echo " devboot_image, devboot_initrd, devboot_oftree"
+ echo " devboot_image, devboot_initrd, devboot_oftree, devboot_bootconfig"
cd "${saved_pwd}"
exit 1
fi
@@ -42,6 +42,10 @@ if [[ -v devboot_initrd ]]; then
override_args="${override_args} -o bootm.initrd=\"${devboot_initrd}\""
fi
+if [[ -v devboot_bootconfig ]]; then
+ override_args="${override_args} -o bootm.bootconfig=\"${devboot_bootconfig}\""
+fi
+
echo boot ${override_args} $*
boot ${override_args} $*
ret=$?
--
2.56.0
prev parent reply other threads:[~2026-10-27 13:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 13:23 [PATCH 0/4] Linux bootconfig support Steffen Trumtrar
2026-10-27 13:23 ` [PATCH 1/4] loadable: add loadable_from_buf() Steffen Trumtrar
2026-10-27 13:23 ` [PATCH 2/4] bootm: append a Linux bootconfig to the initrd Steffen Trumtrar
2026-10-27 13:23 ` [PATCH 3/4] boot: add bootm.bootconfig override Steffen Trumtrar
2026-10-27 13:23 ` Steffen Trumtrar [this message]
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=20261027-v2026-10-0-topic-bootconfig-v1-4-2758d3d9a165@pengutronix.de \
--to=s.trumtrar@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/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