Skip to contentSkip to conversation

arm64: Kconfig: add CONFIG_CMDLINE_EXTEND

PATCH In review Paul Cercueil 2 participants 4 messages Nov 3 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: Kconfig: add CONFIG_CMDLINE_EXTEND

Other archs have it, and it is supported in arch-independent code, so I see no reason why it is not provided on Aarch64. Add it there.

---
 arch/arm64/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/Kconfig +6 -0
index 1075bc661833..f8542e532b50 100644
@@ -2551,6 +2551,12 @@ config CMDLINE_FROM_BOOTLOADER
 	  the boot loader doesn't provide any, the default kernel command
 	  string provided in CMDLINE will be used.
 
+config CMDLINE_EXTEND
+	bool "Extend bootloader kernel arguments"
+	help
+	  The command-line arguments provided by the boot loader will be
+	  appended to the default kernel command string.
+
 config CMDLINE_FORCE
 	bool "Always use the default kernel command string"
 	help
Signature · 1 line
2.47.3
maintainer
#1 lore raw
Quoted 13 lines · Paul Cercueil

Other archs have it, and it is supported in arch-independent code, so I see no reason why it is not provided on Aarch64. Add it there.

---
 arch/arm64/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/Kconfig +0 -0
index 1075bc661833..f8542e532b50 100644

arch/arm64/Kconfig config CMDLINE_FROM_BOOTLOADER · line 2558

Quoted 8 lines
arch/arm64/Kconfig +5 -0
@@ -2551,6 +2551,12 @@ config CMDLINE_FROM_BOOTLOADER
 	  the boot loader doesn't provide any, the default kernel command
 	  string provided in CMDLINE will be used.
 
+config CMDLINE_EXTEND
+	bool "Extend bootloader kernel arguments"
+	help
+	  The command-line arguments provided by the boot loader will be
+	  appended to the default kernel command string.

We previously reverted this in cae118b6acc3 ("arm64: Drop support for CMDLINE_EXTEND") and I think that reasoning still applies. The thing that _has_ changed since then, is that I think bootconfig now has some support for early params, so that's really what people should be using here.

Will

#2 lore raw

Hi Will,

Le mardi 03 novembre 2026 à 11:17 +0000, Will Deacon a écrit :

Quoted 20 lines · Paul Cercueil
Quoted 19 lines

Other archs have it, and it is supported in arch-independent code, so I see no reason why it is not provided on Aarch64. Add it there.

---
 arch/arm64/Kconfig | 6 ++++++

 1 file changed, 6 insertions(+)
arch/arm64/Kconfig +0 -0
index 1075bc661833..f8542e532b50 100644
@@ -2551,6 +2551,12 @@ config CMDLINE_FROM_BOOTLOADER

    the boot loader doesn't provide any, the default kernel command string provided in CMDLINE will be used.

arch/arm64/Kconfig +3 -0
+config CMDLINE_EXTEND
+	bool "Extend bootloader kernel arguments"
+	help
Quoted 8 lines

arch/arm64/Kconfig config CMDLINE_FROM_BOOTLOADER · line 2558

Quoted 2 lines
arch/arm64/Kconfig +2 -0
+	  The command-line arguments provided by the boot loader will be
+	  appended to the default kernel command string.

We previously reverted this in cae118b6acc3 ("arm64: Drop support for CMDLINE_EXTEND") and I think that reasoning still applies. The thing that _has_ changed since then, is that I think bootconfig now has some support for early params, so that's really what people should be using here.

I didn't know about bootconfig, that looks like exactly what I need, thanks!

Cheers,
-Paul

maintainer
#3 lore raw

[+Breno & Masami]

Quoted 30 lines · Paul Cercueil

Le mardi 03 novembre 2026 à 11:17 +0000, Will Deacon a écrit :

Quoted 20 lines · Paul Cercueil
Quoted 19 lines

Other archs have it, and it is supported in arch-independent code, so I see no reason why it is not provided on Aarch64. Add it there.

---
 arch/arm64/Kconfig | 6 ++++++

 1 file changed, 6 insertions(+)
arch/arm64/Kconfig +0 -0
index 1075bc661833..f8542e532b50 100644
@@ -2551,6 +2551,12 @@ config CMDLINE_FROM_BOOTLOADER

    the boot loader doesn't provide any, the default kernel command string provided in CMDLINE will be used.

arch/arm64/Kconfig +3 -0
+config CMDLINE_EXTEND
+	bool "Extend bootloader kernel arguments"
+	help
Quoted 8 lines

arch/arm64/Kconfig config CMDLINE_FROM_BOOTLOADER · line 2558

Quoted 2 lines
arch/arm64/Kconfig +2 -0
+	  The command-line arguments provided by the boot loader will be
+	  appended to the default kernel command string.

We previously reverted this in cae118b6acc3 ("arm64: Drop support for CMDLINE_EXTEND") and I think that reasoning still applies. The thing that _has_ changed since then, is that I think bootconfig now has some support for early params, so that's really what people should be using here.

Quoted 1 line

I didn't know about bootconfig, that looks like exactly what I need, thanks!

Great! Just watch out for the early_param support. Historically, bootconfig silently dropped early parameters, so it was quite limited in what you could use it for. However, I think Breno and Masami have recently fixed that but I'm not entirely sure. I wanted to attend the recent LPC session about it, but I had a conflict and haven't had chance to dig up the recording.

Will