[Buildroot] [PATCH 1/1] board/raspberrypi/post-build.sh: let HDMI console depends on generic getty option

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Apr 25 21:17:06 UTC 2020


On Mon, 28 Oct 2019 10:01:50 +0100
Christophe Blaess <mailist at logilin.fr> wrote:

> From: Christophe Blaess <christophe.blaess at logilin.fr>
> 
> When the BR2_TARGET_GENERIC_GETTY option is disabled, the inittab line
> running getty on serial console is commented out. But the line running
> the HDMI console on Raspberry Pi is still enabled. With this patch the
> HDMI getty line is removed.
> 
> Signed-off-by: Christophe Blaess <christophe.blaess at logilin.fr>

I understand your idea, but I think it is misleading. Indeed, when you
configure a getty with BR2_TARGET_GENERIC_GETTY, you configure on which
tty device this getty will run, using sub-options. So when you disable
this BR2_TARGET_GENERIC_GETTY option, you expect only that one getty to
be disabled.

I don't think this should affect other gettys potentially enabled by
the post-build script.

It is pretty uncommon in our defconfigs to have two gettys running. We
did this for RaspberryPi because a number of newcomers build our
defconfig, and test it on hardware without a serial port.

If you don't like to have this getty, just tweak the post-build, or add
your own, etc. A defconfig provided by upstream Buildroot is anyway
just a starting point to do your own thing.

Due to this, I'm going to mark this patch as Rejected in our patch
tracking system. Of course, if others disagree or there are some
stronger arguments, I'd definitely be willing to revisit this decision.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list