mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] sandbox: defconfig: activate CONFIG_CONSOLE_ACTIVATE_ALL
@ 2024-10-11 20:18 Mohamed Sawy
  2024-10-11 20:32 ` Ahmad Fatoum
  2024-10-14 11:13 ` Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Mohamed Sawy @ 2024-10-11 20:18 UTC (permalink / raw)
  To: barebox; +Cc: Mohamed Sawy

The default CONSOLE_ACTIVATE value set in common/Kconfig is
CONSOLE_ACTIVATE_ALL_FALLBACK.

Which adds an error when there's no explicit activation for a specific
console, that is important for real hardware as it may write barebox log
to external devices that don't expect it.

But in case of sandbox mode there's no explicit activation and the error
is always there in spite of number of consoles and there are no external
devices to worry about.

Fixes: 219b2341dc16 ("console: add new CONSOLE_ACTIVATE_ALL_FALLBACK option")
Signed-off-by: Mohamed Sawy <mohamedsawy1022@gmail.com>
---
 arch/sandbox/configs/sandbox_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/sandbox/configs/sandbox_defconfig b/arch/sandbox/configs/sandbox_defconfig
index 1bb98c550c..a5e0f72c63 100644
--- a/arch/sandbox/configs/sandbox_defconfig
+++ b/arch/sandbox/configs/sandbox_defconfig
@@ -3,6 +3,7 @@ CONFIG_HUSH_FANCY_PROMPT=y
 CONFIG_CMDLINE_EDITING=y
 CONFIG_AUTO_COMPLETE=y
 CONFIG_MENU=y
+CONFIG_CONSOLE_ACTIVATE_ALL=y
 CONFIG_CONSOLE_ALLOW_COLOR=y
 CONFIG_PARTITION_DISK_EFI=y
 CONFIG_DEFAULT_COMPRESSION_GZIP=y
-- 
2.34.1




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

* Re: [PATCH] sandbox: defconfig: activate CONFIG_CONSOLE_ACTIVATE_ALL
  2024-10-11 20:18 [PATCH] sandbox: defconfig: activate CONFIG_CONSOLE_ACTIVATE_ALL Mohamed Sawy
@ 2024-10-11 20:32 ` Ahmad Fatoum
  2024-10-14 11:13 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2024-10-11 20:32 UTC (permalink / raw)
  To: Mohamed Sawy, barebox

Hello Mohamed,

On 11.10.24 22:18, Mohamed Sawy wrote:
> The default CONSOLE_ACTIVATE value set in common/Kconfig is
> CONSOLE_ACTIVATE_ALL_FALLBACK.
> 
> Which adds an error when there's no explicit activation for a specific
> console, that is important for real hardware as it may write barebox log
> to external devices that don't expect it.
> 
> But in case of sandbox mode there's no explicit activation and the error
> is always there in spite of number of consoles and there are no external
> devices to worry about.
> 
> Fixes: 219b2341dc16 ("console: add new CONSOLE_ACTIVATE_ALL_FALLBACK option")
> Signed-off-by: Mohamed Sawy <mohamedsawy1022@gmail.com>

Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

Thanks for the fix,
Ahmad

> ---
>  arch/sandbox/configs/sandbox_defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/sandbox/configs/sandbox_defconfig b/arch/sandbox/configs/sandbox_defconfig
> index 1bb98c550c..a5e0f72c63 100644
> --- a/arch/sandbox/configs/sandbox_defconfig
> +++ b/arch/sandbox/configs/sandbox_defconfig
> @@ -3,6 +3,7 @@ CONFIG_HUSH_FANCY_PROMPT=y
>  CONFIG_CMDLINE_EDITING=y
>  CONFIG_AUTO_COMPLETE=y
>  CONFIG_MENU=y
> +CONFIG_CONSOLE_ACTIVATE_ALL=y
>  CONFIG_CONSOLE_ALLOW_COLOR=y
>  CONFIG_PARTITION_DISK_EFI=y
>  CONFIG_DEFAULT_COMPRESSION_GZIP=y


-- 
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 |



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

* Re: [PATCH] sandbox: defconfig: activate CONFIG_CONSOLE_ACTIVATE_ALL
  2024-10-11 20:18 [PATCH] sandbox: defconfig: activate CONFIG_CONSOLE_ACTIVATE_ALL Mohamed Sawy
  2024-10-11 20:32 ` Ahmad Fatoum
@ 2024-10-14 11:13 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2024-10-14 11:13 UTC (permalink / raw)
  To: barebox, Mohamed Sawy


On Fri, 11 Oct 2024 23:18:18 +0300, Mohamed Sawy wrote:
> The default CONSOLE_ACTIVATE value set in common/Kconfig is
> CONSOLE_ACTIVATE_ALL_FALLBACK.
> 
> Which adds an error when there's no explicit activation for a specific
> console, that is important for real hardware as it may write barebox log
> to external devices that don't expect it.
> 
> [...]

Applied, thanks!

[1/1] sandbox: defconfig: activate CONFIG_CONSOLE_ACTIVATE_ALL
      https://git.pengutronix.de/cgit/barebox/commit/?id=e395b09d30c8 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2024-10-14 12:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-11 20:18 [PATCH] sandbox: defconfig: activate CONFIG_CONSOLE_ACTIVATE_ALL Mohamed Sawy
2024-10-11 20:32 ` Ahmad Fatoum
2024-10-14 11:13 ` Sascha Hauer

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