summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2019-08-23 17:37:49 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-08-28 11:31:22 +0100
commite886473bd426eef2975a659991e63aee1fed15a4 (patch)
tree58bbb8931e56055639626da8cfa2e4ff1842455c /meta/recipes-core
parent082e31ce2fe422a5b9112c314ddf717ad94ea781 (diff)
downloadpoky-e886473bd426eef2975a659991e63aee1fed15a4.tar.gz
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>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/systemd/systemd_242.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_242.bb b/meta/recipes-core/systemd/systemd_242.bb
index b368ca8a2c..cfa9c079ab 100644
--- a/meta/recipes-core/systemd/systemd_242.bb
+++ b/meta/recipes-core/systemd/systemd_242.bb
@@ -619,6 +619,12 @@ python __anonymous() {
619 d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1") 619 d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
620} 620}
621 621
622python do_warn_musl() {
623 if d.getVar('TCLIBC') == "musl":
624 bb.warn("Using systemd with musl is not recommended since it is not supported upstream and some patches are known to be problematic.")
625}
626addtask warn_musl before do_configure
627
622ALTERNATIVE_${PN} = "halt reboot shutdown poweroff runlevel resolv-conf" 628ALTERNATIVE_${PN} = "halt reboot shutdown poweroff runlevel resolv-conf"
623 629
624ALTERNATIVE_TARGET[resolv-conf] = "${sysconfdir}/resolv-conf.systemd" 630ALTERNATIVE_TARGET[resolv-conf] = "${sysconfdir}/resolv-conf.systemd"