blob: fc31b9f5003ace118fe248ee12105c7f042e332c [file] [log] [blame]
Gunnar Mills9df13162017-03-08 15:00:08 -06001AM_DEFAULT_SOURCE_EXT = .cpp
2
Andrew Jeffery234ba8a2017-04-18 16:55:25 +09303ACLOCAL_AMFLAGS = -Im4
4
Adriana Kobylakf3dfe652019-10-08 11:35:55 -05005dist_bin_SCRIPTS =
6
Patrick Venture799eb192019-03-28 12:54:43 -07007bin_PROGRAMS = \
Adriana Kobylak4772a942018-10-09 15:26:44 -05008 openpower-update-manager \
9 openpower-pnor-msl
Gunnar Mills9df13162017-03-08 15:00:08 -060010
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050011openpower_update_manager_SOURCES = \
Adriana Kobylakbefe5ce2017-04-05 15:57:44 -050012 activation.cpp \
Saqib Khan167601b2017-06-18 23:33:46 -050013 version.cpp \
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050014 item_updater.cpp \
Lei YUe4994462019-03-14 14:41:53 +080015 item_updater_main.cpp \
16 utils.cpp
Gunnar Mills8fc66c92017-08-29 08:30:48 -050017
Adriana Kobylak10e915a2019-05-31 13:25:36 -050018if HAVE_SYSTEMD
19systemdsystemunit_DATA = \
20 op-pnor-msl.service \
21 org.open_power.Software.Host.Updater.service
22endif
23
Lei YUf3ce4332019-02-21 14:09:49 +080024if UBIFS_LAYOUT
25include ubi/Makefile.am.include
26else
27include static/Makefile.am.include
Lei YU7d832d72019-03-14 13:58:07 +080028if HAVE_SYSTEMD
Adriana Kobylak10e915a2019-05-31 13:25:36 -050029 systemdsystemunit_DATA += \
Lei YU7d832d72019-03-14 13:58:07 +080030 openpower-pnor-update@.service
31endif
Lei YUf3ce4332019-02-21 14:09:49 +080032endif
33
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050034if WANT_SIGNATURE_VERIFY_BUILD
Adriana Kobylak70ca2422018-09-06 14:23:38 -050035openpower_update_manager_SOURCES += \
Lei YUe4994462019-03-14 14:41:53 +080036 image_verify.cpp
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050037endif
38
Adriana Kobylakf3dfe652019-10-08 11:35:55 -050039if VIRTUAL_PNOR_ENABLED
40include vpnor/Makefile.am.include
41endif
Saqib Khanc350c612017-08-13 13:36:44 -050042
Adriana Kobylak4772a942018-10-09 15:26:44 -050043openpower_pnor_msl_SOURCES = \
44 msl_verify.cpp \
45 msl_verify_main.cpp
46
Gunnar Mills9df13162017-03-08 15:00:08 -060047generic_cxxflags = \
48 $(SYSTEMD_CFLAGS) \
49 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050050 $(SDBUSPLUS_CFLAGS) \
Andrew Geissler8be32f72018-08-27 11:06:26 -070051 $(PHOSPHOR_LOGGING_CFLAGS) \
52 -flto
Gunnar Mills9df13162017-03-08 15:00:08 -060053generic_ldflags = \
54 $(SYSTEMD_LIBS) \
55 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050056 $(SDBUSPLUS_LIBS) \
Adriana Kobylak55f9e832017-05-14 16:13:00 -050057 $(PHOSPHOR_LOGGING_LIBS) \
Saqib Khan2308b8b2017-09-19 15:33:06 -050058 -lstdc++fs \
59 -lssl \
60 -lcrypto
Gunnar Mills9df13162017-03-08 15:00:08 -060061
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050062openpower_update_manager_CXXFLAGS = $(generic_cxxflags)
63openpower_update_manager_LDFLAGS = $(generic_ldflags)
Adriana Kobylak4772a942018-10-09 15:26:44 -050064openpower_pnor_msl_CXXFLAGS = $(generic_cxxflags)
65openpower_pnor_msl_LDFLAGS = $(generic_ldflags)
Gunnar Mills9df13162017-03-08 15:00:08 -060066
Gunnar Mills1ea62e12017-03-27 21:49:16 -050067SUBDIRS = test