Create a new package for the phosphor-image-updater
Change-Id: I9a5b8977072c30d7c2c8a8402ca5bf627d8b79bd
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/common/recipes-phosphor/flash/phosphor-software-manager.bb b/common/recipes-phosphor/flash/phosphor-software-manager.bb
index 7aa0cbc..0092882 100644
--- a/common/recipes-phosphor/flash/phosphor-software-manager.bb
+++ b/common/recipes-phosphor/flash/phosphor-software-manager.bb
@@ -10,6 +10,7 @@
SOFTWARE_MGR_PACKAGES = " \
${PN}-version \
${PN}-download-mgr \
+ ${PN}-updater \
"
PACKAGES =+ "${SOFTWARE_MGR_PACKAGES}"
PACKAGES_remove = "${PN}"
@@ -42,11 +43,18 @@
phosphor-dbus-interfaces \
sdbusplus \
"
+RDEPENDS_${PN}-updater += " \
+ phosphor-logging \
+ phosphor-dbus-interfaces \
+ sdbusplus \
+"
FILES_${PN}-version += "${sbindir}/phosphor-version-software-manager"
FILES_${PN}-download-mgr += "${sbindir}/phosphor-download-manager"
+FILES_${PN}-updater += "${sbindir}/phosphor-image-updater"
DBUS_SERVICE_${PN}-version += "xyz.openbmc_project.Software.Version.service"
DBUS_SERVICE_${PN}-download-mgr += "xyz.openbmc_project.Software.Download.service"
+DBUS_SERVICE_${PN}-updater += "xyz.openbmc_project.Software.BMC.Updater.service"
SRC_URI += "git://github.com/openbmc/phosphor-bmc-code-mgmt"
SRCREV = "4e48fd582e86bd8246a5602dde4b5f644ae03d11"
diff --git a/common/recipes-phosphor/flash/phosphor-software-manager/xyz.openbmc_project.Software.BMC.Updater.service b/common/recipes-phosphor/flash/phosphor-software-manager/xyz.openbmc_project.Software.BMC.Updater.service
new file mode 100644
index 0000000..e43b005
--- /dev/null
+++ b/common/recipes-phosphor/flash/phosphor-software-manager/xyz.openbmc_project.Software.BMC.Updater.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=OpenBMC Software Update Manager
+Wants=xyz.openbmc_project.Software.Version.service
+Before=xyz.openbmc_project.Software.Version.service
+
+[Service]
+ExecStart={sbindir}/phosphor-image-updater
+Restart=always
+Type=dbus
+BusName={BUSNAME}
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}
diff --git a/common/recipes-phosphor/flash/phosphor-software-manager/xyz.openbmc_project.Software.Version.service b/common/recipes-phosphor/flash/phosphor-software-manager/xyz.openbmc_project.Software.Version.service
index 741f586..0825ebf 100644
--- a/common/recipes-phosphor/flash/phosphor-software-manager/xyz.openbmc_project.Software.Version.service
+++ b/common/recipes-phosphor/flash/phosphor-software-manager/xyz.openbmc_project.Software.Version.service
@@ -1,6 +1,5 @@
[Unit]
Description=Phosphor Version Software Manager
-Before=mapper-wait@-xyz-openbmc_project-software-version.service
[Service]
ExecStartPre=/bin/sh -c 'mkdir -p /tmp/images'