[PATCH openbmc] Add network dbus object to openbmc image
OpenBMC Patches
openbmc-patches at stwcx.xyz
Tue Feb 2 10:50:19 AEDT 2016
From: Adriana Kobylak <anoo at us.ibm.com>
Create networkd recipe and service files
Add dependency to networkd to the ipmid recipe
since the upcoming ipmi set/get lan ipmi cmds will
make use of the network dbus object
---
.../recipes-phosphor/host-ipmid/host-ipmid.bb | 1 +
.../common/recipes-phosphor/network/network.bb | 21 +++++++++++++++++++++
.../network/network/network.service | 10 ++++++++++
3 files changed, 32 insertions(+)
create mode 100644 meta-phosphor/common/recipes-phosphor/network/network.bb
create mode 100644 meta-phosphor/common/recipes-phosphor/network/network/network.service
diff --git a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
index 174110f..e74a6de 100644
--- a/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
+++ b/meta-phosphor/common/recipes-phosphor/host-ipmid/host-ipmid.bb
@@ -15,6 +15,7 @@ inherit obmc-phosphor-c-daemon
TARGET_CFLAGS += "-fpic"
RDEPENDS_${PN} += "settings"
+RDEPENDS_${PN} += "network"
SRC_URI += "git://github.com/openbmc/phosphor-host-ipmid"
SRCREV = "e90d8bf6a342649dba2fd1589a3cddb3cd051bb1"
diff --git a/meta-phosphor/common/recipes-phosphor/network/network.bb b/meta-phosphor/common/recipes-phosphor/network/network.bb
new file mode 100644
index 0000000..33e2693
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/network/network.bb
@@ -0,0 +1,21 @@
+SUMMARY = "Network DBUS object"
+DESCRIPTION = "Network DBUS object"
+HOMEPAGE = "http://github.com/openbmc/phosphor-networkd"
+PR = "r1"
+
+inherit obmc-phosphor-license
+inherit obmc-phosphor-systemd
+
+RDEPENDS_${PN} += "python-dbus python-pygobject"
+
+SRC_URI += "git://github.com/openbmc/phosphor-networkd"
+
+SRCREV = "a657afc9cc76dc6678edb8de9df569f92dd108e1"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+ install -d ${D}/${sbindir}
+ install ${S}/netman.py ${D}/${sbindir}
+}
+
diff --git a/meta-phosphor/common/recipes-phosphor/network/network/network.service b/meta-phosphor/common/recipes-phosphor/network/network/network.service
new file mode 100644
index 0000000..85a44bb
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/network/network/network.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Network DBUS object
+Requires=skeleton.service
+After=skeleton.service
+
+[Service]
+ExecStart=/usr/sbin/netman.py
+
+[Install]
+WantedBy=multi-user.target
--
2.6.4
More information about the openbmc
mailing list