aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-bsp/ledmon
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-11-19 19:44:09 -0800
committerKhem Raj <raj.khem@gmail.com>2023-11-19 19:47:47 -0800
commit5e1ddd1e7fdfa840efa207bd7750f5a3b0089060 (patch)
tree3a2cd6e7662bdb7c681b6dabe54eab19fb924943 /meta-oe/recipes-bsp/ledmon
parentf13feb0adfe150c922756eef366a69ccb1f1c49f (diff)
downloadmeta-openembedded-5e1ddd1e7fdfa840efa207bd7750f5a3b0089060.tar.gz
ledmon: Fix systemd unit install
Use confgure knob to emable systemd service unitfile generation. Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-bsp/ledmon')
-rw-r--r--meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb9
1 files 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
-}