Skip to content

Commit 2344aa8

Browse files
authored
Merge pull request #409 from sc108-lee/libsystemd
meson: libsystemd <= 219 does not support sd-bus, sd-event
2 parents 1d62f8a + 3558c6b commit 2344aa8

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ if openssl_dep.found()
7979
endif
8080

8181
# Check for libsystemd availability. Optional, only required for MCTP dbus scan
82-
libsystemd_dep = dependency('libsystemd', required: false)
83-
conf.set('CONFIG_LIBSYSTEMD', libsystemd_dep.found(), description: 'Is libsystemd available?')
82+
libsystemd_dep = dependency('libsystemd', version: '>219', required: false)
83+
conf.set('CONFIG_LIBSYSTEMD', libsystemd_dep.found(), description: 'Is libsystemd(>219) available?')
8484

8585
# local (cross-compilable) implementations of ccan configure steps
8686
conf.set10(

src/nvme/mi-mctp.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#include <systemd/sd-event.h>
2626
#include <systemd/sd-bus.h>
2727
#include <systemd/sd-id128.h>
28+
29+
#define MCTP_DBUS_PATH "/xyz/openbmc_project/mctp"
30+
#define MCTP_DBUS_IFACE "xyz.openbmc_project.MCTP"
31+
#define MCTP_DBUS_IFACE_ENDPOINT "xyz.openbmc_project.MCTP.Endpoint"
2832
#endif
2933

3034
#include "private.h"
@@ -80,9 +84,6 @@ struct nvme_mi_transport_mctp {
8084
int sd;
8185
};
8286

83-
#define MCTP_DBUS_PATH "/xyz/openbmc_project/mctp"
84-
#define MCTP_DBUS_IFACE "xyz.openbmc_project.MCTP"
85-
#define MCTP_DBUS_IFACE_ENDPOINT "xyz.openbmc_project.MCTP.Endpoint"
8687

8788
static const struct nvme_mi_transport nvme_mi_transport_mctp;
8889

0 commit comments

Comments
 (0)