blob: 1ac39142d2ba6ab3bb56490bdebf69f248ddcefd [file] [log] [blame]
Gunnar Mills01a323b2017-01-18 09:48:13 -06001AM_DEFAULT_SOURCE_EXT = .cpp
2
Deepak Kodihalli059e2332017-04-12 06:40:53 -05003# Build these headers, don't install them
4noinst_HEADERS = \
Deepak Kodihalli059e2332017-04-12 06:40:53 -05005 download_manager.hpp \
Gunnar Millse91d3212017-04-19 15:42:47 -05006 watch.hpp \
7 version.hpp \
Lei YU1be8d502018-06-20 11:48:36 +08008 images.hpp \
Gunnar Millsec1b41c2017-05-02 12:20:36 -05009 image_manager.hpp \
Saqib Khanb0774702017-05-23 16:02:41 -050010 item_updater.hpp \
Jayanth Othayoth0e0c1272018-02-21 05:46:36 -060011 activation.hpp
Deepak Kodihalli059e2332017-04-12 06:40:53 -050012
Gunnar Mills01a323b2017-01-18 09:48:13 -060013sbin_PROGRAMS = \
Gunnar Mills701e0212017-04-03 11:21:27 -050014 phosphor-version-software-manager \
Gunnar Millsec1b41c2017-05-02 12:20:36 -050015 phosphor-download-manager \
16 phosphor-image-updater
Gunnar Mills01a323b2017-01-18 09:48:13 -060017
18phosphor_version_software_manager_SOURCES = \
Deepak Kodihalli059e2332017-04-12 06:40:53 -050019 image_manager_main.cpp \
Gunnar Millse91d3212017-04-19 15:42:47 -050020 watch.cpp \
21 version.cpp \
22 image_manager.cpp
Gunnar Mills01a323b2017-01-18 09:48:13 -060023
Gunnar Mills93c12d32017-05-10 13:11:53 -050024BUILT_SOURCES = \
25 xyz/openbmc_project/Software/Version/error.cpp \
Gunnar Millsf5eaf392017-08-22 16:36:55 -050026 xyz/openbmc_project/Software/Version/error.hpp \
27 org/openbmc/Associations/server.cpp \
28 org/openbmc/Associations/server.hpp
Gunnar Mills93c12d32017-05-10 13:11:53 -050029
30CLEANFILES = ${BUILT_SOURCES}
31
Gunnar Mills701e0212017-04-03 11:21:27 -050032phosphor_download_manager_SOURCES = \
33 download_manager.cpp \
34 download_manager_main.cpp
35
Gunnar Millsec1b41c2017-05-02 12:20:36 -050036phosphor_image_updater_SOURCES = \
Saqib Khanb0774702017-05-23 16:02:41 -050037 activation.cpp \
Saqib Khan705f1bf2017-06-09 23:58:38 -050038 version.cpp \
Saqib Khan5d532672017-08-09 10:44:50 -050039 serialize.cpp \
Gunnar Millsec1b41c2017-05-02 12:20:36 -050040 item_updater.cpp \
Jayanth Othayoth0e0c1272018-02-21 05:46:36 -060041 item_updater_main.cpp
42
Lei YUa7853ee2018-05-23 11:13:12 +080043if UBIFS_LAYOUT
Adriana Kobylak9f89e2e2018-05-30 13:16:20 -050044include ubi/Makefile.am.include
Lei YUa7853ee2018-05-23 11:13:12 +080045else
46include static/Makefile.am.include
47endif
Adriana Kobylak9f89e2e2018-05-30 13:16:20 -050048
Jayanth Othayoth0e0c1272018-02-21 05:46:36 -060049if WANT_SIGNATURE_VERIFY_BUILD
50noinst_HEADERS += image_verify.hpp
51phosphor_image_updater_SOURCES += image_verify.cpp
52endif
Gunnar Mills652da832017-08-29 08:34:54 -050053
Adriana Kobylak7e8d76b2018-04-20 10:03:01 -050054if WANT_SYNC
Adriana Kobylakb072d1b2018-04-24 11:37:21 -050055noinst_HEADERS += \
56 sync_manager.hpp \
57 sync_watch.hpp
Adriana Kobylak7e8d76b2018-04-20 10:03:01 -050058sbin_PROGRAMS += phosphor-sync-software-manager
Adriana Kobylakb072d1b2018-04-24 11:37:21 -050059phosphor_sync_software_manager_SOURCES = \
60 sync_manager.cpp \
61 sync_watch.cpp \
62 sync_manager_main.cpp
Adriana Kobylak7e8d76b2018-04-20 10:03:01 -050063phosphor_sync_software_manager_CXXFLAGS = $(generic_cxxflags)
64phosphor_sync_software_manager_LDFLAGS = $(generic_ldflags)
65endif
66
Gunnar Mills652da832017-08-29 08:34:54 -050067nodist_phosphor_image_updater_SOURCES = \
Gunnar Millsf5eaf392017-08-22 16:36:55 -050068 org/openbmc/Associations/server.cpp
Gunnar Millsec1b41c2017-05-02 12:20:36 -050069
Deepak Kodihalli059e2332017-04-12 06:40:53 -050070generic_cxxflags = \
71 $(SYSTEMD_CFLAGS) \
72 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
73 $(SDBUSPLUS_CFLAGS) \
74 $(PHOSPHOR_LOGGING_CFLAGS)
75generic_ldflags = \
76 $(SYSTEMD_LIBS) \
77 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
78 $(SDBUSPLUS_LIBS) \
Gunnar Mills3a482f62017-04-20 16:07:20 -050079 $(PHOSPHOR_LOGGING_LIBS) \
Saqib Khan26a960d2017-09-19 14:23:28 -050080 -lstdc++fs \
81 -lssl \
82 -lcrypto
Gunnar Mills32159fb2017-01-31 21:44:36 -060083
Gunnar Mills93c12d32017-05-10 13:11:53 -050084xyz/openbmc_project/Software/Version/error.hpp: ${top_srcdir}/xyz/openbmc_project/Software/Version.errors.yaml
85 @mkdir -p `dirname $@`
86 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header xyz.openbmc_project.Software.Version > $@
87
88xyz/openbmc_project/Software/Version/error.cpp: ${top_srcdir}/xyz/openbmc_project/Software/Version.errors.yaml
89 @mkdir -p `dirname $@`
90 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp xyz.openbmc_project.Software.Version > $@
91
Gunnar Millsf5eaf392017-08-22 16:36:55 -050092org/openbmc/Associations/server.cpp: org/openbmc/Associations.interface.yaml
93 @mkdir -p `dirname $@`
94 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp org.openbmc.Associations > $@
95
96org/openbmc/Associations/server.hpp: org/openbmc/Associations.interface.yaml
97 @mkdir -p `dirname $@`
98 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header org.openbmc.Associations > $@
99
Gunnar Mills32159fb2017-01-31 21:44:36 -0600100phosphor_version_software_manager_CXXFLAGS = $(generic_cxxflags)
101phosphor_version_software_manager_LDFLAGS = $(generic_ldflags)
Gunnar Mills701e0212017-04-03 11:21:27 -0500102phosphor_download_manager_CXXFLAGS = $(generic_cxxflags)
103phosphor_download_manager_LDFLAGS = $(generic_ldflags)
Gunnar Millsec1b41c2017-05-02 12:20:36 -0500104phosphor_image_updater_CXXFLAGS = $(generic_cxxflags)
105phosphor_image_updater_LDFLAGS = $(generic_ldflags)
Gunnar Mills01d55c32017-04-20 10:52:15 -0500106
107SUBDIRS = test