Move UBI service files into repo
Move the service files for the UBI layout from the openbmc/openbmc
repo to the local one.
Tested: The service files are installed in /lib/systemd/system/ and
code update on Witherspoon is successful.
Change-Id: I988045886fadbd2216ca91aba952a40ca1228e33
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/ubi/Makefile.am.include b/ubi/Makefile.am.include
index 1a5128a..b343a74 100644
--- a/ubi/Makefile.am.include
+++ b/ubi/Makefile.am.include
@@ -1,3 +1,18 @@
phosphor_image_updater_SOURCES += \
%reldir%/flash.cpp \
%reldir%/item_updater_helper.cpp
+
+if HAVE_SYSTEMD
+systemdsystemunit_DATA = \
+ %reldir%/obmc-flash-bmc-cleanup.service \
+ %reldir%/obmc-flash-bmc-mirroruboot.service \
+ %reldir%/obmc-flash-bmc-ubiremount.service \
+ %reldir%/obmc-flash-bmc-ubiro@.service \
+ %reldir%/obmc-flash-bmc-ubiro-remove@.service \
+ %reldir%/obmc-flash-bmc-ubirw.service \
+ %reldir%/obmc-flash-bmc-ubirw-remove.service \
+ %reldir%/obmc-flash-bmc-updateubootvars@.service \
+ %reldir%/reboot-guard-disable.service \
+ %reldir%/reboot-guard-enable.service \
+ %reldir%/usr-local.mount
+endif