Re: [PATCH v7 2/3] ttynull: Add an option to allow ttynull to be used as a console device

From: Andy Shevchenko
Date: Wed Mar 05 2025 - 14:19:26 EST


On Wed, Mar 5, 2025 at 6:30 AM <adamsimonelli@xxxxxxxxx> wrote:
>
> From: Adam Simonelli <adamsimonelli@xxxxxxxxx>
>
> The new config option, CONFIG_NULL_TTY_DEFAULT_ CONSOLE will allow
> ttynull to be initialized by console_initcall() and selected as a
> possible console device.

...

> In order to use this driver, you should redirect the console to this
> - TTY, or boot the kernel with console=ttynull.
> + TTY, boot the kernel with console=ttynull, or enable
> + CONFIG_NULL_TTY_DEFAULT_CONSOLE.

I haven't checked what it looks like in menuconfig / nconfig / etc,
but I think that CONFIG_ is redundant here.

> + If unsure, say N.
> +
> +config NULL_TTY_DEFAULT_CONSOLE
> + bool "Support for console on ttynull"
> + depends on NULL_TTY=y && !VT_CONSOLE
> + help
> + Say Y here if you want the NULL TTY to be used as a /dev/console
> + device.
> +
> + This is similar to CONFIG_VT_CONSOLE, but without the dependency on
> + CONFIG_VT. It uses the ttynull driver as the system console.

Btw, do those `make nconfig` and friends render the options?

> If unsure, say N.

--
With Best Regards,
Andy Shevchenko