blob: 24ba4347fd34a961cb163efc0a42e468a454ed1f [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
Adriana Kobylak8bc2ab42020-07-15 09:16:27 -050027if MMC_LAYOUT
28include mmc/Makefile.am.include
29else
Lei YUf3ce4332019-02-21 14:09:49 +080030include static/Makefile.am.include
Lei YU7d832d72019-03-14 13:58:07 +080031if HAVE_SYSTEMD
Adriana Kobylak10e915a2019-05-31 13:25:36 -050032 systemdsystemunit_DATA += \
Lei YU7d832d72019-03-14 13:58:07 +080033 openpower-pnor-update@.service
34endif
Lei YUf3ce4332019-02-21 14:09:49 +080035endif
Adriana Kobylak8bc2ab42020-07-15 09:16:27 -050036endif
Lei YUf3ce4332019-02-21 14:09:49 +080037
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050038if WANT_SIGNATURE_VERIFY_BUILD
Adriana Kobylak70ca2422018-09-06 14:23:38 -050039openpower_update_manager_SOURCES += \
Lei YUe4994462019-03-14 14:41:53 +080040 image_verify.cpp
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050041endif
42
Adriana Kobylakf3dfe652019-10-08 11:35:55 -050043if VIRTUAL_PNOR_ENABLED
44include vpnor/Makefile.am.include
45endif
Saqib Khanc350c612017-08-13 13:36:44 -050046
Adriana Kobylak4772a942018-10-09 15:26:44 -050047openpower_pnor_msl_SOURCES = \
48 msl_verify.cpp \
49 msl_verify_main.cpp
50
Gunnar Mills9df13162017-03-08 15:00:08 -060051generic_cxxflags = \
52 $(SYSTEMD_CFLAGS) \
53 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050054 $(SDBUSPLUS_CFLAGS) \
Andrew Geissler8be32f72018-08-27 11:06:26 -070055 $(PHOSPHOR_LOGGING_CFLAGS) \
56 -flto
Gunnar Mills9df13162017-03-08 15:00:08 -060057generic_ldflags = \
58 $(SYSTEMD_LIBS) \
59 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050060 $(SDBUSPLUS_LIBS) \
Adriana Kobylak55f9e832017-05-14 16:13:00 -050061 $(PHOSPHOR_LOGGING_LIBS) \
Saqib Khan2308b8b2017-09-19 15:33:06 -050062 -lstdc++fs \
63 -lssl \
64 -lcrypto
Gunnar Mills9df13162017-03-08 15:00:08 -060065
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050066openpower_update_manager_CXXFLAGS = $(generic_cxxflags)
67openpower_update_manager_LDFLAGS = $(generic_ldflags)
Adriana Kobylak4772a942018-10-09 15:26:44 -050068openpower_pnor_msl_CXXFLAGS = $(generic_cxxflags)
69openpower_pnor_msl_LDFLAGS = $(generic_ldflags)
Gunnar Mills9df13162017-03-08 15:00:08 -060070
Gunnar Mills1ea62e12017-03-27 21:49:16 -050071SUBDIRS = test