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 \ |
Bright Cheng | 0d7198f | 2019-11-18 16:45:01 +0800 | [diff] [blame] | 55 | xyz.openbmc_project.Software.Version.service \ |
| 56 | reboot-guard-disable.service \ |
| 57 | reboot-guard-enable.service \ |
| 58 | force-reboot.service |
Adriana Kobylak | 9cbfa2e | 2019-04-25 14:02:37 -0500 | [diff] [blame] | 59 | |
Vijay Khemka | 9341618 | 2020-01-23 10:18:06 -0800 | [diff] [blame] | 60 | if HOST_BIOS_UPGRADE |
| 61 | systemdsystemunit_DATA += obmc-flash-host-bios@.service |
| 62 | endif |
| 63 | |
Adriana Kobylak | 9cbfa2e | 2019-04-25 14:02:37 -0500 | [diff] [blame] | 64 | tmpfilesdir=${exec_prefix}/lib/tmpfiles.d/ |
| 65 | dist_tmpfiles_DATA = \ |
| 66 | software.conf |
| 67 | endif |
| 68 | |
Lei YU | a7853ee | 2018-05-23 11:13:12 +0800 | [diff] [blame] | 69 | if UBIFS_LAYOUT |
Adriana Kobylak | 9f89e2e | 2018-05-30 13:16:20 -0500 | [diff] [blame] | 70 | include ubi/Makefile.am.include |
Lei YU | a7853ee | 2018-05-23 11:13:12 +0800 | [diff] [blame] | 71 | else |
| 72 | include static/Makefile.am.include |
| 73 | endif |
Adriana Kobylak | 9f89e2e | 2018-05-30 13:16:20 -0500 | [diff] [blame] | 74 | |
Jayanth Othayoth | 0e0c127 | 2018-02-21 05:46:36 -0600 | [diff] [blame] | 75 | if WANT_SIGNATURE_VERIFY_BUILD |
Adriana Kobylak | 5ed9b2d | 2018-09-06 13:15:34 -0500 | [diff] [blame] | 76 | noinst_HEADERS += \ |
| 77 | image_verify.hpp \ |
Jayashankar Padath | a013560 | 2019-04-22 16:22:58 +0530 | [diff] [blame] | 78 | openssl_alloc.hpp |
Adriana Kobylak | 5ed9b2d | 2018-09-06 13:15:34 -0500 | [diff] [blame] | 79 | phosphor_image_updater_SOURCES += \ |
| 80 | image_verify.cpp \ |
Jayashankar Padath | a013560 | 2019-04-22 16:22:58 +0530 | [diff] [blame] | 81 | openssl_alloc.cpp |
Jayanth Othayoth | 0e0c127 | 2018-02-21 05:46:36 -0600 | [diff] [blame] | 82 | endif |
Gunnar Mills | 652da83 | 2017-08-29 08:34:54 -0500 | [diff] [blame] | 83 | |
Adriana Kobylak | 7e8d76b | 2018-04-20 10:03:01 -0500 | [diff] [blame] | 84 | if WANT_SYNC |
Adriana Kobylak | b072d1b | 2018-04-24 11:37:21 -0500 | [diff] [blame] | 85 | noinst_HEADERS += \ |
| 86 | sync_manager.hpp \ |
| 87 | sync_watch.hpp |
Patrick Venture | ab8231c | 2019-03-28 12:41:34 -0700 | [diff] [blame] | 88 | bin_PROGRAMS += phosphor-sync-software-manager |
Adriana Kobylak | b072d1b | 2018-04-24 11:37:21 -0500 | [diff] [blame] | 89 | phosphor_sync_software_manager_SOURCES = \ |
| 90 | sync_manager.cpp \ |
| 91 | sync_watch.cpp \ |
| 92 | sync_manager_main.cpp |
Adriana Kobylak | 7e8d76b | 2018-04-20 10:03:01 -0500 | [diff] [blame] | 93 | phosphor_sync_software_manager_CXXFLAGS = $(generic_cxxflags) |
| 94 | phosphor_sync_software_manager_LDFLAGS = $(generic_ldflags) |
Adriana Kobylak | 9cbfa2e | 2019-04-25 14:02:37 -0500 | [diff] [blame] | 95 | dist_sysconf_DATA = \ |
| 96 | synclist |
Adriana Kobylak | 7e8d76b | 2018-04-20 10:03:01 -0500 | [diff] [blame] | 97 | endif |
| 98 | |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 99 | generic_cxxflags = \ |
| 100 | $(SYSTEMD_CFLAGS) \ |
| 101 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 102 | $(SDBUSPLUS_CFLAGS) \ |
Andrew Geissler | e4c0632 | 2018-08-27 11:27:54 -0700 | [diff] [blame] | 103 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 104 | -flto |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 105 | generic_ldflags = \ |
| 106 | $(SYSTEMD_LIBS) \ |
| 107 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 108 | $(SDBUSPLUS_LIBS) \ |
Gunnar Mills | 3a482f6 | 2017-04-20 16:07:20 -0500 | [diff] [blame] | 109 | $(PHOSPHOR_LOGGING_LIBS) \ |
Saqib Khan | 26a960d | 2017-09-19 14:23:28 -0500 | [diff] [blame] | 110 | -lstdc++fs \ |
| 111 | -lssl \ |
| 112 | -lcrypto |
Gunnar Mills | 32159fb | 2017-01-31 21:44:36 -0600 | [diff] [blame] | 113 | |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 114 | 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] | 115 | @mkdir -p `dirname $@` |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 116 | $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header xyz.openbmc_project.Software.Image > $@ |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 117 | |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 118 | 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] | 119 | @mkdir -p `dirname $@` |
Adriana Kobylak | 43699ca | 2018-10-17 14:56:29 -0500 | [diff] [blame] | 120 | $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp xyz.openbmc_project.Software.Image > $@ |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 121 | |
Gunnar Mills | 32159fb | 2017-01-31 21:44:36 -0600 | [diff] [blame] | 122 | phosphor_version_software_manager_CXXFLAGS = $(generic_cxxflags) |
| 123 | phosphor_version_software_manager_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 124 | phosphor_download_manager_CXXFLAGS = $(generic_cxxflags) |
| 125 | phosphor_download_manager_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 126 | phosphor_image_updater_CXXFLAGS = $(generic_cxxflags) |
| 127 | phosphor_image_updater_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | 01d55c3 | 2017-04-20 10:52:15 -0500 | [diff] [blame] | 128 | |
| 129 | SUBDIRS = test |