diff options
-rw-r--r-- | meta-oe/recipes-bsp/ledmon/ledmon_0.97.bb | 9 |
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" | |||
25 | 25 | ||
26 | S = "${WORKDIR}/git" | 26 | S = "${WORKDIR}/git" |
27 | 27 | ||
28 | EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-systemd', '', d)}" | ||
29 | |||
28 | EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}'" | 30 | EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}' CFLAGS='${CFLAGS}'" |
29 | 31 | ||
30 | # The ledmon sources include headers in ${S}/config to build but not in CFLAGS. | 32 | # The ledmon sources include headers in ${S}/config to build but not in CFLAGS. |
31 | # We need to add this include path in CFLAGS. | 33 | # We need to add this include path in CFLAGS. |
32 | CFLAGS += "-I${S}/config" | 34 | CFLAGS += "-I${S}/config" |
33 | |||
34 | do_install:append() { | ||
35 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
36 | install -d ${D}${systemd_unitdir}/system | ||
37 | install -m 0755 ${S}/systemd/ledmon.service ${D}${systemd_unitdir}/system | ||
38 | fi | ||
39 | } | ||