Use confgure knob to emable systemd service unitfile generation.

Signed-off-by: Khem Raj <[email protected]>
---
 meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb 
b/meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb
index d431fd9a84..88a6e5bb30 100644
--- a/meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb
+++ b/meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb
@@ -25,15 +25,10 @@ COMPATIBLE_HOST:libc-musl = "null"
 
 S = "${WORKDIR}/git"
 
+EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 
'--enable-systemd', '', d)}"
+
 EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}'"
 
 # The ledmon sources include headers in ${S}/config to build but not in 
CFLAGS. 
 # We need to add this include path in CFLAGS.
 CFLAGS += "-I${S}/config"
-
-do_install:append() {
-        if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', 
d)}; then
-               install -d ${D}${systemd_unitdir}/system
-               install -m 0755 ${S}/systemd/ledmon.service 
${D}${systemd_unitdir}/system
-        fi
-}
-- 
2.42.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#106898): 
https://lists.openembedded.org/g/openembedded-devel/message/106898
Mute This Topic: https://lists.openembedded.org/mt/102701627/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to