mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] commands: bootchooser: migrate menu entry to boot menu
@ 2020-10-20  5:13 Ahmad Fatoum
  2020-10-20  5:13 ` [PATCH 2/2] x86: configs: efi: enable some more useful options Ahmad Fatoum
  2020-10-21  9:52 ` [PATCH 1/2] commands: bootchooser: migrate menu entry to boot menu Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2020-10-20  5:13 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

While the bootchooser command is not required for boot with bootchooser,
it's still boot related and is more likely to be looked for in the boot
menu than the misc menu. The boot menu has other commands like uimage
which do not boot either, but are boot-related.

While at it, add some Kconfig help text.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 commands/Kconfig | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/commands/Kconfig b/commands/Kconfig
index df18715f20d4..727946706300 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -498,6 +498,23 @@ config CMD_UIMAGE
 		  -e OUTFILE	extract image to OUTFILE
 		  -n NO		use image number NO in multifile image
 
+config CMD_BOOTCHOOSER
+	tristate
+	depends on BOOTCHOOSER
+	prompt "bootchooser control utility"
+	help
+	  Control misc behaviour of the bootchooser
+
+	  Options:
+	    -a <n|default> [TARGETS]
+	    	set remaining attempts of given targets to 'n' or the default attempts
+	    -p <n|default> [TARGETS]
+	    	set priority of given targets to 'n' or the default priority
+	    -i
+	    	Show information about the bootchooser
+	    -s
+		Mark the last boot successful
+
 # end Boot commands
 endmenu
 
@@ -2179,11 +2196,6 @@ config CMD_STATE
 	depends on STATE
 	prompt "state"
 
-config CMD_BOOTCHOOSER
-	tristate
-	depends on BOOTCHOOSER
-	prompt "bootchooser"
-
 config CMD_DHRYSTONE
 	bool
 	prompt "dhrystone"
-- 
2.28.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] x86: configs: efi: enable some more useful options
  2020-10-20  5:13 [PATCH 1/2] commands: bootchooser: migrate menu entry to boot menu Ahmad Fatoum
@ 2020-10-20  5:13 ` Ahmad Fatoum
  2020-10-21  9:52 ` [PATCH 1/2] commands: bootchooser: migrate menu entry to boot menu Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2020-10-20  5:13 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

Enable some more options to make the defconfig more widely applicable.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/x86/configs/efi_defconfig | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/x86/configs/efi_defconfig b/arch/x86/configs/efi_defconfig
index 83794d7a0702..761ffbe261ba 100644
--- a/arch/x86/configs/efi_defconfig
+++ b/arch/x86/configs/efi_defconfig
@@ -15,14 +15,19 @@ CONFIG_CONSOLE_ACTIVATE_ALL=y
 CONFIG_PARTITION_DISK_EFI=y
 CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
 CONFIG_STATE=y
+CONFIG_BOOTCHOOSER=y
+CONFIG_RESET_SOURCE=y
 CONFIG_DEBUG_LL=y
+CONFIG_CMD_DMESG=y
 CONFIG_LONGHELP=y
 CONFIG_CMD_IOMEM=y
+CONFIG_CMD_IMD=y
 CONFIG_CMD_MEMINFO=y
 CONFIG_CMD_GO=y
 CONFIG_CMD_LOADB=y
 CONFIG_CMD_RESET=y
 CONFIG_CMD_UIMAGE=y
+CONFIG_CMD_BOOTCHOOSER=y
 CONFIG_CMD_PARTITION=y
 CONFIG_CMD_EXPORT=y
 CONFIG_CMD_LOADENV=y
@@ -56,6 +61,7 @@ CONFIG_CMD_POWEROFF=y
 CONFIG_CMD_WD=y
 CONFIG_CMD_2048=y
 CONFIG_CMD_BAREBOX_UPDATE=y
+CONFIG_CMD_OF_DIFF=y
 CONFIG_CMD_OF_NODE=y
 CONFIG_CMD_OF_PROPERTY=y
 CONFIG_CMD_OFTREE=y
@@ -64,12 +70,24 @@ CONFIG_CMD_STATE=y
 CONFIG_NET=y
 CONFIG_NET_NFS=y
 CONFIG_NET_NETCONSOLE=y
+CONFIG_OFDEVICE=y
+CONFIG_OF_BAREBOX_DRIVERS=y
+CONFIG_OF_BAREBOX_ENV_IN_FS=y
 CONFIG_DRIVER_SERIAL_EFI_STDIO=y
 CONFIG_DRIVER_NET_EFI_SNP=y
 # CONFIG_SPI is not set
 CONFIG_DISK=y
+CONFIG_DISK_WRITE=y
+CONFIG_VIDEO=y
+CONFIG_FRAMEBUFFER_CONSOLE=y
+CONFIG_DRIVER_VIDEO_EFI_GOP=y
+CONFIG_FINTEK_SUPERIO=y
+CONFIG_SMSC_SUPERIO=y
+CONFIG_STATE_DRV=y
 CONFIG_WATCHDOG=y
 CONFIG_WATCHDOG_EFI=y
+CONFIG_F71808E_WDT=y
+# CONFIG_PINCTRL is not set
 CONFIG_FS_EXT4=y
 CONFIG_FS_TFTP=y
 CONFIG_FS_NFS=y
-- 
2.28.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] commands: bootchooser: migrate menu entry to boot menu
  2020-10-20  5:13 [PATCH 1/2] commands: bootchooser: migrate menu entry to boot menu Ahmad Fatoum
  2020-10-20  5:13 ` [PATCH 2/2] x86: configs: efi: enable some more useful options Ahmad Fatoum
@ 2020-10-21  9:52 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2020-10-21  9:52 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Tue, Oct 20, 2020 at 07:13:17AM +0200, Ahmad Fatoum wrote:
> While the bootchooser command is not required for boot with bootchooser,
> it's still boot related and is more likely to be looked for in the boot
> menu than the misc menu. The boot menu has other commands like uimage
> which do not boot either, but are boot-related.
> 
> While at it, add some Kconfig help text.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  commands/Kconfig | 22 +++++++++++++++++-----
>  1 file changed, 17 insertions(+), 5 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/commands/Kconfig b/commands/Kconfig
> index df18715f20d4..727946706300 100644
> --- a/commands/Kconfig
> +++ b/commands/Kconfig
> @@ -498,6 +498,23 @@ config CMD_UIMAGE
>  		  -e OUTFILE	extract image to OUTFILE
>  		  -n NO		use image number NO in multifile image
>  
> +config CMD_BOOTCHOOSER
> +	tristate
> +	depends on BOOTCHOOSER
> +	prompt "bootchooser control utility"
> +	help
> +	  Control misc behaviour of the bootchooser
> +
> +	  Options:
> +	    -a <n|default> [TARGETS]
> +	    	set remaining attempts of given targets to 'n' or the default attempts
> +	    -p <n|default> [TARGETS]
> +	    	set priority of given targets to 'n' or the default priority
> +	    -i
> +	    	Show information about the bootchooser
> +	    -s
> +		Mark the last boot successful
> +
>  # end Boot commands
>  endmenu
>  
> @@ -2179,11 +2196,6 @@ config CMD_STATE
>  	depends on STATE
>  	prompt "state"
>  
> -config CMD_BOOTCHOOSER
> -	tristate
> -	depends on BOOTCHOOSER
> -	prompt "bootchooser"
> -
>  config CMD_DHRYSTONE
>  	bool
>  	prompt "dhrystone"
> -- 
> 2.28.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-21  9:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-20  5:13 [PATCH 1/2] commands: bootchooser: migrate menu entry to boot menu Ahmad Fatoum
2020-10-20  5:13 ` [PATCH 2/2] x86: configs: efi: enable some more useful options Ahmad Fatoum
2020-10-21  9:52 ` [PATCH 1/2] commands: bootchooser: migrate menu entry to boot menu Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox