Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
2 | |||||
Andrew Jeffery | 234ba8a | 2017-04-18 16:55:25 +0930 | [diff] [blame] | 3 | ACLOCAL_AMFLAGS = -Im4 |
4 | |||||
Adriana Kobylak | f3dfe65 | 2019-10-08 11:35:55 -0500 | [diff] [blame] | 5 | dist_bin_SCRIPTS = |
6 | |||||
Patrick Venture | 799eb19 | 2019-03-28 12:54:43 -0700 | [diff] [blame] | 7 | bin_PROGRAMS = \ |
Adriana Kobylak | 4772a94 | 2018-10-09 15:26:44 -0500 | [diff] [blame] | 8 | openpower-update-manager \ |
9 | openpower-pnor-msl | ||||
Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 10 | |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 11 | openpower_update_manager_SOURCES = \ |
Adriana Kobylak | befe5ce | 2017-04-05 15:57:44 -0500 | [diff] [blame] | 12 | activation.cpp \ |
Brad Bishop | 099543e | 2020-11-09 15:37:58 -0500 | [diff] [blame] | 13 | functions.cpp \ |
Saqib Khan | 167601b | 2017-06-18 23:33:46 -0500 | [diff] [blame] | 14 | version.cpp \ |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 15 | item_updater.cpp \ |
Lei YU | e499446 | 2019-03-14 14:41:53 +0800 | [diff] [blame] | 16 | item_updater_main.cpp \ |
17 | utils.cpp | ||||
Gunnar Mills | 8fc66c9 | 2017-08-29 08:30:48 -0500 | [diff] [blame] | 18 | |
Adriana Kobylak | 10e915a | 2019-05-31 13:25:36 -0500 | [diff] [blame] | 19 | if HAVE_SYSTEMD |
20 | systemdsystemunit_DATA = \ | ||||
21 | op-pnor-msl.service \ | ||||
22 | org.open_power.Software.Host.Updater.service | ||||
23 | endif | ||||
24 | |||||
Lei YU | f3ce433 | 2019-02-21 14:09:49 +0800 | [diff] [blame] | 25 | if UBIFS_LAYOUT |
26 | include ubi/Makefile.am.include | ||||
27 | else | ||||
Adriana Kobylak | 8bc2ab4 | 2020-07-15 09:16:27 -0500 | [diff] [blame] | 28 | if MMC_LAYOUT |
29 | include mmc/Makefile.am.include | ||||
30 | else | ||||
Lei YU | f3ce433 | 2019-02-21 14:09:49 +0800 | [diff] [blame] | 31 | include static/Makefile.am.include |
Lei YU | 7d832d7 | 2019-03-14 13:58:07 +0800 | [diff] [blame] | 32 | if HAVE_SYSTEMD |
Adriana Kobylak | 10e915a | 2019-05-31 13:25:36 -0500 | [diff] [blame] | 33 | systemdsystemunit_DATA += \ |
Lei YU | 7d832d7 | 2019-03-14 13:58:07 +0800 | [diff] [blame] | 34 | openpower-pnor-update@.service |
35 | endif | ||||
Lei YU | f3ce433 | 2019-02-21 14:09:49 +0800 | [diff] [blame] | 36 | endif |
Adriana Kobylak | 8bc2ab4 | 2020-07-15 09:16:27 -0500 | [diff] [blame] | 37 | endif |
Lei YU | f3ce433 | 2019-02-21 14:09:49 +0800 | [diff] [blame] | 38 | |
Jayanth Othayoth | 70804dc | 2018-03-20 06:31:59 -0500 | [diff] [blame] | 39 | if WANT_SIGNATURE_VERIFY_BUILD |
Adriana Kobylak | 70ca242 | 2018-09-06 14:23:38 -0500 | [diff] [blame] | 40 | openpower_update_manager_SOURCES += \ |
Lei YU | e499446 | 2019-03-14 14:41:53 +0800 | [diff] [blame] | 41 | image_verify.cpp |
Jayanth Othayoth | 70804dc | 2018-03-20 06:31:59 -0500 | [diff] [blame] | 42 | endif |
43 | |||||
Adriana Kobylak | f3dfe65 | 2019-10-08 11:35:55 -0500 | [diff] [blame] | 44 | if VIRTUAL_PNOR_ENABLED |
45 | include vpnor/Makefile.am.include | ||||
46 | endif | ||||
Saqib Khan | c350c61 | 2017-08-13 13:36:44 -0500 | [diff] [blame] | 47 | |
Adriana Kobylak | 4772a94 | 2018-10-09 15:26:44 -0500 | [diff] [blame] | 48 | openpower_pnor_msl_SOURCES = \ |
49 | msl_verify.cpp \ | ||||
50 | msl_verify_main.cpp | ||||
51 | |||||
Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 52 | generic_cxxflags = \ |
53 | $(SYSTEMD_CFLAGS) \ | ||||
54 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ | ||||
Gunnar Mills | 44c7729 | 2017-03-20 15:02:27 -0500 | [diff] [blame] | 55 | $(SDBUSPLUS_CFLAGS) \ |
Brad Bishop | 0283f7c | 2020-11-09 10:09:26 -0500 | [diff] [blame] | 56 | $(SDEVENTPLUS_CFLAGS) \ |
Andrew Geissler | 8be32f7 | 2018-08-27 11:06:26 -0700 | [diff] [blame] | 57 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
58 | -flto | ||||
Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 59 | generic_ldflags = \ |
60 | $(SYSTEMD_LIBS) \ | ||||
61 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ | ||||
Gunnar Mills | 44c7729 | 2017-03-20 15:02:27 -0500 | [diff] [blame] | 62 | $(SDBUSPLUS_LIBS) \ |
Brad Bishop | 0283f7c | 2020-11-09 10:09:26 -0500 | [diff] [blame] | 63 | $(SDEVENTPLUS_LIBS) \ |
Adriana Kobylak | 55f9e83 | 2017-05-14 16:13:00 -0500 | [diff] [blame] | 64 | $(PHOSPHOR_LOGGING_LIBS) \ |
Saqib Khan | 2308b8b | 2017-09-19 15:33:06 -0500 | [diff] [blame] | 65 | -lssl \ |
66 | -lcrypto | ||||
Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 67 | |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 68 | openpower_update_manager_CXXFLAGS = $(generic_cxxflags) |
69 | openpower_update_manager_LDFLAGS = $(generic_ldflags) | ||||
Adriana Kobylak | 4772a94 | 2018-10-09 15:26:44 -0500 | [diff] [blame] | 70 | openpower_pnor_msl_CXXFLAGS = $(generic_cxxflags) |
71 | openpower_pnor_msl_LDFLAGS = $(generic_ldflags) | ||||
Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 72 | |
Gunnar Mills | 1ea62e1 | 2017-03-27 21:49:16 -0500 | [diff] [blame] | 73 | SUBDIRS = test |