blob: a2f65be26f67c89a74deb9a91faa1da88840ca68 [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 \
Brad Bishop099543e2020-11-09 15:37:58 -050013 functions.cpp \
Saqib Khan167601b2017-06-18 23:33:46 -050014 version.cpp \
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050015 item_updater.cpp \
Lei YUe4994462019-03-14 14:41:53 +080016 item_updater_main.cpp \
17 utils.cpp
Gunnar Mills8fc66c92017-08-29 08:30:48 -050018
Adriana Kobylak10e915a2019-05-31 13:25:36 -050019if HAVE_SYSTEMD
20systemdsystemunit_DATA = \
21 op-pnor-msl.service \
22 org.open_power.Software.Host.Updater.service
23endif
24
Lei YUf3ce4332019-02-21 14:09:49 +080025if UBIFS_LAYOUT
26include ubi/Makefile.am.include
27else
Adriana Kobylak8bc2ab42020-07-15 09:16:27 -050028if MMC_LAYOUT
29include mmc/Makefile.am.include
30else
Lei YUf3ce4332019-02-21 14:09:49 +080031include static/Makefile.am.include
Lei YU7d832d72019-03-14 13:58:07 +080032if HAVE_SYSTEMD
Adriana Kobylak10e915a2019-05-31 13:25:36 -050033 systemdsystemunit_DATA += \
Lei YU7d832d72019-03-14 13:58:07 +080034 openpower-pnor-update@.service
35endif
Lei YUf3ce4332019-02-21 14:09:49 +080036endif
Adriana Kobylak8bc2ab42020-07-15 09:16:27 -050037endif
Lei YUf3ce4332019-02-21 14:09:49 +080038
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050039if WANT_SIGNATURE_VERIFY_BUILD
Adriana Kobylak70ca2422018-09-06 14:23:38 -050040openpower_update_manager_SOURCES += \
Lei YUe4994462019-03-14 14:41:53 +080041 image_verify.cpp
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050042endif
43
Adriana Kobylakf3dfe652019-10-08 11:35:55 -050044if VIRTUAL_PNOR_ENABLED
45include vpnor/Makefile.am.include
46endif
Saqib Khanc350c612017-08-13 13:36:44 -050047
Adriana Kobylak4772a942018-10-09 15:26:44 -050048openpower_pnor_msl_SOURCES = \
49 msl_verify.cpp \
50 msl_verify_main.cpp
51
Gunnar Mills9df13162017-03-08 15:00:08 -060052generic_cxxflags = \
53 $(SYSTEMD_CFLAGS) \
54 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050055 $(SDBUSPLUS_CFLAGS) \
Brad Bishop0283f7c2020-11-09 10:09:26 -050056 $(SDEVENTPLUS_CFLAGS) \
Andrew Geissler8be32f72018-08-27 11:06:26 -070057 $(PHOSPHOR_LOGGING_CFLAGS) \
58 -flto
Gunnar Mills9df13162017-03-08 15:00:08 -060059generic_ldflags = \
60 $(SYSTEMD_LIBS) \
61 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050062 $(SDBUSPLUS_LIBS) \
Brad Bishop0283f7c2020-11-09 10:09:26 -050063 $(SDEVENTPLUS_LIBS) \
Adriana Kobylak55f9e832017-05-14 16:13:00 -050064 $(PHOSPHOR_LOGGING_LIBS) \
Saqib Khan2308b8b2017-09-19 15:33:06 -050065 -lssl \
66 -lcrypto
Gunnar Mills9df13162017-03-08 15:00:08 -060067
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050068openpower_update_manager_CXXFLAGS = $(generic_cxxflags)
69openpower_update_manager_LDFLAGS = $(generic_ldflags)
Adriana Kobylak4772a942018-10-09 15:26:44 -050070openpower_pnor_msl_CXXFLAGS = $(generic_cxxflags)
71openpower_pnor_msl_LDFLAGS = $(generic_ldflags)
Gunnar Mills9df13162017-03-08 15:00:08 -060072
Gunnar Mills1ea62e12017-03-27 21:49:16 -050073SUBDIRS = test