Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 3 | # Build these headers, don't install them |
| 4 | noinst_HEADERS = \ |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 5 | download_manager.hpp \ |
Gunnar Mills | e91d321 | 2017-04-19 15:42:47 -0500 | [diff] [blame] | 6 | watch.hpp \ |
| 7 | version.hpp \ |
Lei YU | 1be8d50 | 2018-06-20 11:48:36 +0800 | [diff] [blame] | 8 | images.hpp \ |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 9 | image_manager.hpp \ |
Saqib Khan | b077470 | 2017-05-23 16:02:41 -0500 | [diff] [blame] | 10 | item_updater.hpp \ |
Lei YU | 56aaf45 | 2018-06-21 16:09:44 +0800 | [diff] [blame] | 11 | activation.hpp \ |
| 12 | flash.hpp \ |
Jayashankar Padath | a013560 | 2019-04-22 16:22:58 +0530 | [diff] [blame] | 13 | item_updater_helper.hpp \ |
| 14 | utils.hpp |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 15 | |
Patrick Venture | ab8231c | 2019-03-28 12:41:34 -0700 | [diff] [blame] | 16 | bin_PROGRAMS = \ |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 17 | phosphor-version-software-manager \ |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 18 | phosphor-download-manager \ |
| 19 | phosphor-image-updater |
Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 20 | |
Adriana Kobylak | 9cbfa2e | 2019-04-25 14:02:37 -0500 | [diff] [blame] | 21 | dist_bin_SCRIPTS = \ |
| 22 | obmc-flash-bmc |
| 23 | |
Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 24 | phosphor_version_software_manager_SOURCES = \ |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 25 | image_manager_main.cpp \ |
Gunnar Mills | e91d321 | 2017-04-19 15:42:47 -0500 | [diff] [blame] | 26 | watch.cpp \ |
| 27 | version.cpp \ |
| 28 | image_manager.cpp |
Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 29 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 30 | BUILT_SOURCES = \ |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 31 | xyz/openbmc_project/Software/Image/error.cpp \ |
John Wang | 85c356f | 2019-09-11 16:20:13 +0800 | [diff] [blame] | 32 | xyz/openbmc_project/Software/Image/error.hpp |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 33 | |
| 34 | CLEANFILES = ${BUILT_SOURCES} |
| 35 | |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 36 | phosphor_download_manager_SOURCES = \ |
| 37 | download_manager.cpp \ |
| 38 | download_manager_main.cpp |
| 39 | |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 40 | phosphor_image_updater_SOURCES = \ |
Saqib Khan | b077470 | 2017-05-23 16:02:41 -0500 | [diff] [blame] | 41 | activation.cpp \ |
Saqib Khan | 705f1bf | 2017-06-09 23:58:38 -0500 | [diff] [blame] | 42 | version.cpp \ |
Saqib Khan | 5d53267 | 2017-08-09 10:44:50 -0500 | [diff] [blame] | 43 | serialize.cpp \ |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 44 | item_updater.cpp \ |
Jayashankar Padath | a013560 | 2019-04-22 16:22:58 +0530 | [diff] [blame] | 45 | item_updater_main.cpp \ |
| 46 | utils.cpp |
Jayanth Othayoth | 0e0c127 | 2018-02-21 05:46:36 -0600 | [diff] [blame] | 47 | |
Adriana Kobylak | 9cbfa2e | 2019-04-25 14:02:37 -0500 | [diff] [blame] | 48 | if HAVE_SYSTEMD |
| 49 | systemdsystemunit_DATA = \ |
| 50 | obmc-flash-bmc-setenv@.service \ |
Adriana Kobylak | 375547c | 2019-10-25 12:59:57 -0500 | [diff] [blame] | 51 | usr-local.mount \ |
Adriana Kobylak | 9cbfa2e | 2019-04-25 14:02:37 -0500 | [diff] [blame] | 52 | xyz.openbmc_project.Software.BMC.Updater.service \ |
| 53 | xyz.openbmc_project.Software.Download.service \ |
| 54 | xyz.openbmc_project.Software.Sync.service \ |
| 55 | xyz.openbmc_project.Software.Version.service |
| 56 | |
Vijay Khemka | 9341618 | 2020-01-23 10:18:06 -0800 | [diff] [blame] | 57 | if HOST_BIOS_UPGRADE |
| 58 | systemdsystemunit_DATA += obmc-flash-host-bios@.service |
| 59 | endif |
| 60 | |
Adriana Kobylak | 9cbfa2e | 2019-04-25 14:02:37 -0500 | [diff] [blame] | 61 | tmpfilesdir=${exec_prefix}/lib/tmpfiles.d/ |
| 62 | dist_tmpfiles_DATA = \ |
| 63 | software.conf |
| 64 | endif |
| 65 | |
Lei YU | a7853ee | 2018-05-23 11:13:12 +0800 | [diff] [blame] | 66 | if UBIFS_LAYOUT |
Adriana Kobylak | 9f89e2e | 2018-05-30 13:16:20 -0500 | [diff] [blame] | 67 | include ubi/Makefile.am.include |
Lei YU | a7853ee | 2018-05-23 11:13:12 +0800 | [diff] [blame] | 68 | else |
| 69 | include static/Makefile.am.include |
| 70 | endif |
Adriana Kobylak | 9f89e2e | 2018-05-30 13:16:20 -0500 | [diff] [blame] | 71 | |
Jayanth Othayoth | 0e0c127 | 2018-02-21 05:46:36 -0600 | [diff] [blame] | 72 | if WANT_SIGNATURE_VERIFY_BUILD |
Adriana Kobylak | 5ed9b2d | 2018-09-06 13:15:34 -0500 | [diff] [blame] | 73 | noinst_HEADERS += \ |
| 74 | image_verify.hpp \ |
Jayashankar Padath | a013560 | 2019-04-22 16:22:58 +0530 | [diff] [blame] | 75 | openssl_alloc.hpp |
Adriana Kobylak | 5ed9b2d | 2018-09-06 13:15:34 -0500 | [diff] [blame] | 76 | phosphor_image_updater_SOURCES += \ |
| 77 | image_verify.cpp \ |
Jayashankar Padath | a013560 | 2019-04-22 16:22:58 +0530 | [diff] [blame] | 78 | openssl_alloc.cpp |
Jayanth Othayoth | 0e0c127 | 2018-02-21 05:46:36 -0600 | [diff] [blame] | 79 | endif |
Gunnar Mills | 652da83 | 2017-08-29 08:34:54 -0500 | [diff] [blame] | 80 | |
Adriana Kobylak | 7e8d76b | 2018-04-20 10:03:01 -0500 | [diff] [blame] | 81 | if WANT_SYNC |
Adriana Kobylak | b072d1b | 2018-04-24 11:37:21 -0500 | [diff] [blame] | 82 | noinst_HEADERS += \ |
| 83 | sync_manager.hpp \ |
| 84 | sync_watch.hpp |
Patrick Venture | ab8231c | 2019-03-28 12:41:34 -0700 | [diff] [blame] | 85 | bin_PROGRAMS += phosphor-sync-software-manager |
Adriana Kobylak | b072d1b | 2018-04-24 11:37:21 -0500 | [diff] [blame] | 86 | phosphor_sync_software_manager_SOURCES = \ |
| 87 | sync_manager.cpp \ |
| 88 | sync_watch.cpp \ |
| 89 | sync_manager_main.cpp |
Adriana Kobylak | 7e8d76b | 2018-04-20 10:03:01 -0500 | [diff] [blame] | 90 | phosphor_sync_software_manager_CXXFLAGS = $(generic_cxxflags) |
| 91 | phosphor_sync_software_manager_LDFLAGS = $(generic_ldflags) |
Adriana Kobylak | 9cbfa2e | 2019-04-25 14:02:37 -0500 | [diff] [blame] | 92 | dist_sysconf_DATA = \ |
| 93 | synclist |
Adriana Kobylak | 7e8d76b | 2018-04-20 10:03:01 -0500 | [diff] [blame] | 94 | endif |
| 95 | |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 96 | generic_cxxflags = \ |
| 97 | $(SYSTEMD_CFLAGS) \ |
| 98 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 99 | $(SDBUSPLUS_CFLAGS) \ |
Andrew Geissler | e4c0632 | 2018-08-27 11:27:54 -0700 | [diff] [blame] | 100 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 101 | -flto |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 102 | generic_ldflags = \ |
| 103 | $(SYSTEMD_LIBS) \ |
| 104 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 105 | $(SDBUSPLUS_LIBS) \ |
Gunnar Mills | 3a482f6 | 2017-04-20 16:07:20 -0500 | [diff] [blame] | 106 | $(PHOSPHOR_LOGGING_LIBS) \ |
Saqib Khan | 26a960d | 2017-09-19 14:23:28 -0500 | [diff] [blame] | 107 | -lstdc++fs \ |
| 108 | -lssl \ |
| 109 | -lcrypto |
Gunnar Mills | 32159fb | 2017-01-31 21:44:36 -0600 | [diff] [blame] | 110 | |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 111 | xyz/openbmc_project/Software/Image/error.hpp: ${top_srcdir}/xyz/openbmc_project/Software/Image.errors.yaml |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 112 | @mkdir -p `dirname $@` |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 113 | $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header xyz.openbmc_project.Software.Image > $@ |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 114 | |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 115 | xyz/openbmc_project/Software/Image/error.cpp: ${top_srcdir}/xyz/openbmc_project/Software/Image.errors.yaml |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 116 | @mkdir -p `dirname $@` |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 117 | $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp xyz.openbmc_project.Software.Image > $@ |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 118 | |
Gunnar Mills | 32159fb | 2017-01-31 21:44:36 -0600 | [diff] [blame] | 119 | phosphor_version_software_manager_CXXFLAGS = $(generic_cxxflags) |
| 120 | phosphor_version_software_manager_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 121 | phosphor_download_manager_CXXFLAGS = $(generic_cxxflags) |
| 122 | phosphor_download_manager_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 123 | phosphor_image_updater_CXXFLAGS = $(generic_cxxflags) |
| 124 | phosphor_image_updater_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | 01d55c3 | 2017-04-20 10:52:15 -0500 | [diff] [blame] | 125 | |
| 126 | SUBDIRS = test |