[Buildroot] [PATCH] systemd: add an option to use busybox's getty

Romain Naour romain.naour at smile.fr
Mon Jul 9 08:02:15 UTC 2018


Hi Jeremy,

Le 08/07/2018 à 21:54, Jérémy Rosen a écrit :
> Currently, the patch to replace agetty with busybox's getty is always
> applied.
> 
> this patch adds a compile-time option to systemd to choose either agetty
> or busybox's getty and chooses the correct option depending on agetty being
> selected in busybox
> 

As discussed privately, if you want an example on how apply a patch
conditionally you can take a look at the gcc package [1].
This has been introduced by [2] but there is some other place where
$(APPLY_PATCHES) is used (conditionally or unconditionally).

$(APPLY_PATCHES) is defined in package/Makefile.in but this way to use it is not
documented in the manual [3].

Best regards,
Romain

[1] https://git.busybox.net/buildroot/tree/package/gcc/gcc.mk#n41
[2]
https://git.busybox.net/buildroot/commit/?id=197006a41c1a0450bf6350d5742e186b5b0c69de
[3] http://nightly.buildroot.org/manual.html#patch-policy



More information about the buildroot mailing list