Skip to contentSkip to conversation

arm64: Kconfig: make CMDLINE_FORCE depend on CMDLINE

PATCH In review Anders Roxell 4 participants 4 messages Nov 11, 2019 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: Kconfig: make CMDLINE_FORCE depend on CMDLINE

When building allmodconfig KCONFIG_ALLCONFIG=$(pwd)/arch/arm64/configs/defconfig CONFIG_CMDLINE_FORCE gets enabled. Which forces the user to pass the full cmdline to CONFIG_CMDLINE="...".

Rework so that CONFIG_CMDLINE_FORCE gets set only if CONFIG_CMDLINE is set to something except an empty string.

---
 arch/arm64/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/Kconfig +1 -0
index 50df79d4aa3b..64764ca92fca 100644
@@ -1629,6 +1629,7 @@ config CMDLINE
 
 config CMDLINE_FORCE
 	bool "Always use the default kernel command string"
+	depends on CMDLINE != ""
 	help
 	  Always use the default kernel command string, even if the boot
 	  loader passes other arguments to the kernel.
Signature · 1 line
2.20.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 18 lines · Anders Roxell

When building allmodconfig KCONFIG_ALLCONFIG=$(pwd)/arch/arm64/configs/defconfig CONFIG_CMDLINE_FORCE gets enabled. Which forces the user to pass the full cmdline to CONFIG_CMDLINE="...".

Rework so that CONFIG_CMDLINE_FORCE gets set only if CONFIG_CMDLINE is set to something except an empty string.

---
 arch/arm64/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/Kconfig +0 -0
index 50df79d4aa3b..64764ca92fca 100644

arch/arm64/Kconfig config CMDLINE · line 1635

Quoted 7 lines
arch/arm64/Kconfig +1 -0
@@ -1629,6 +1629,7 @@ config CMDLINE
 
 config CMDLINE_FORCE
 	bool "Always use the default kernel command string"
+	depends on CMDLINE != ""
 	help
 	  Always use the default kernel command string, even if the boot
 	  loader passes other arguments to the kernel.

Will

#2 lore raw
In reply to Anders Roxell
Quoted 10 lines · Anders Roxell

When building allmodconfig KCONFIG_ALLCONFIG=$(pwd)/arch/arm64/configs/defconfig CONFIG_CMDLINE_FORCE gets enabled. Which forces the user to pass the full cmdline to CONFIG_CMDLINE="...".

Rework so that CONFIG_CMDLINE_FORCE gets set only if CONFIG_CMDLINE is set to something except an empty string.

---

This looks ok.

Were you also going to propose a patch to introduce a LITTLE ENDIAN config option?

For me, this would mean that ACPI module is built for allmodconfig, which is a good thing.

Thanks,
john

Quoted 16 lines
  arch/arm64/Kconfig | 1 +
  1 file changed, 1 insertion(+)
arch/arm64/Kconfig +1 -0
index 50df79d4aa3b..64764ca92fca 100644
@@ -1629,6 +1629,7 @@ config CMDLINE
 
  config CMDLINE_FORCE
  	bool "Always use the default kernel command string"
+	depends on CMDLINE != ""
  	help
  	  Always use the default kernel command string, even if the boot
  	  loader passes other arguments to the kernel.
maintainer
#3 lore raw
In reply to Anders Roxell
Quoted 9 lines · Anders Roxell

When building allmodconfig KCONFIG_ALLCONFIG=$(pwd)/arch/arm64/configs/defconfig CONFIG_CMDLINE_FORCE gets enabled. Which forces the user to pass the full cmdline to CONFIG_CMDLINE="...".

Rework so that CONFIG_CMDLINE_FORCE gets set only if CONFIG_CMDLINE is set to something except an empty string.

Queued for 5.5.

Signature · 1 line
Catalin