systemd: Print a buildtime warning about the status with musl

It is possible if a user really has to use it, but not recommended.

(From OE-Core rev: 10c1a27501a32740a03c3c6c0684c7d24374af08)

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Adrian Bunk
2019-08-23 17:37:49 +03:00
committed by Richard Purdie
parent 082e31ce2f
commit e886473bd4

View File

@@ -619,6 +619,12 @@ python __anonymous() {
d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
}
python do_warn_musl() {
if d.getVar('TCLIBC') == "musl":
bb.warn("Using systemd with musl is not recommended since it is not supported upstream and some patches are known to be problematic.")
}
addtask warn_musl before do_configure
ALTERNATIVE_${PN} = "halt reboot shutdown poweroff runlevel resolv-conf"
ALTERNATIVE_TARGET[resolv-conf] = "${sysconfdir}/resolv-conf.systemd"