[Buildroot] [PATCH 1/1] board/raspberrypi/post-build.sh: avoid HDMI login when getty disabled

Carlos Santos unixmania at gmail.com
Thu Oct 3 22:25:53 UTC 2019


On Thu, Oct 3, 2019 at 4:54 PM Christophe Blaess <mailist at logilin.fr> wrote:
>
> Hello Carlos,
>
> > I guess you are using raspberrypi_defconfig as a template for a custom
> > board configuration. Can't you simply leave
> > BR2_ROOTFS_POST_BUILD_SCRIPT empty?
>
> No, I was using raspberry_defconfig on Raspberry Pi 4 as training
> support to show how to use this option on production systems when we
> don't want any getty (only custom code running on background).
>
> I removed serial console by disabling the "Run a getty option.." but the
> HDMI login was still there.
>
> It's ok to remove the BR2_ROOTFS_POST_BUILD_SCRIPT, but I would rather
> have only disabled the getty option. It seemed more elegant to me.

I think it's more elegant to solve the problem by means of the
configuration, not by customizing buildroot. The board configurations
an their  post-build and post-mage scripts are mostly examples.

If you need something more sophisticated then it's better to keep them
in a BR2_EXTERNAL, as documented in

    http://www.buildroot.org/downloads/manual/manual.html#customize

-- 
Carlos Santos <unixmania at gmail.com>



More information about the buildroot mailing list