blob: 9c6ec61eaa97de15a5e0048ad802525437c36bee [file] [log] [blame]
Matt Spinler99c2b402019-05-23 14:29:16 -05001phosphor_log_manager_SOURCES += \
Matt Spinler7b5342c2019-11-06 14:48:43 -06002 extensions/openpower-pels/entry_points.cpp \
Matt Spinlerf60ac272019-12-11 13:47:50 -06003 extensions/openpower-pels/host_notifier.cpp \
Matt Spinler7b5342c2019-11-06 14:48:43 -06004 extensions/openpower-pels/manager.cpp \
Matt Spinler5c350fd2019-12-12 13:53:53 -06005 extensions/openpower-pels/pldm_interface.cpp \
Matt Spinleracb7c102020-01-10 13:49:22 -06006 extensions/openpower-pels/repository.cpp \
Harisuddin Mohamed Isac8d6cc62020-08-19 22:47:19 +08007 extensions/openpower-pels/src.cpp \
Matt Spinleracb7c102020-01-10 13:49:22 -06008 extensions/openpower-pels/user_data.cpp
Matt Spinler7b5342c2019-11-06 14:48:43 -06009
10phosphor_log_manager_LDADD = \
11 libpel.la
12
Matt Spinler5c350fd2019-12-12 13:53:53 -060013phosphor_log_manager_LDFLAGS += \
14 $(LIBPLDM_LIBS)
15
16phosphor_log_manager_CFLAGS = \
17 $(LIBPLDM_CFLAGS)
18
Matt Spinler7b5342c2019-11-06 14:48:43 -060019noinst_LTLIBRARIES = libpel.la
20
21libpel_la_SOURCES = \
Matt Spinler6852d722019-09-30 15:35:53 -050022 extensions/openpower-pels/ascii_string.cpp \
Matt Spinlerdf797f22019-07-09 15:39:51 -050023 extensions/openpower-pels/bcd_time.cpp \
Matt Spinler6c9662c2019-10-09 11:27:20 -050024 extensions/openpower-pels/callout.cpp \
Matt Spinler32f13c92019-10-09 12:48:25 -050025 extensions/openpower-pels/callouts.cpp \
Matt Spinlerc8705e22019-09-11 12:36:07 -050026 extensions/openpower-pels/data_interface.cpp \
Matt Spinler18c42b02020-06-02 15:59:50 -050027 extensions/openpower-pels/device_callouts.cpp \
Matt Spinlerc63e2e82019-12-02 15:50:12 -060028 extensions/openpower-pels/extended_user_header.cpp \
Matt Spinler09d64002019-09-11 14:29:46 -050029 extensions/openpower-pels/failing_mtms.cpp \
Matt Spinlera906c942019-10-08 13:42:05 -050030 extensions/openpower-pels/fru_identity.cpp \
Matt Spinler14d671f2019-09-25 13:11:22 -050031 extensions/openpower-pels/generic.cpp \
Harisuddin Mohamed Isa600d15a2019-12-20 12:42:26 +080032 extensions/openpower-pels/json_utils.cpp \
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050033 extensions/openpower-pels/log_id.cpp \
Matt Spinler90b4a0a2019-10-09 10:08:43 -050034 extensions/openpower-pels/mru.cpp \
Matt Spinlerb6664332019-09-10 15:24:10 -050035 extensions/openpower-pels/mtms.cpp \
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050036 extensions/openpower-pels/paths.cpp \
Matt Spinler5b3a11d2019-10-08 14:13:31 -050037 extensions/openpower-pels/pce_identity.cpp \
Matt Spinlercb6b0592019-07-16 15:58:51 -050038 extensions/openpower-pels/pel.cpp \
Matt Spinlerf1e85e22019-11-01 11:31:31 -050039 extensions/openpower-pels/pel_rules.cpp \
Matt Spinler835a8692019-08-27 13:56:05 -050040 extensions/openpower-pels/pel_values.cpp \
Matt Spinler03c1d912019-07-10 14:12:15 -050041 extensions/openpower-pels/private_header.cpp \
Matt Spinler367144c2019-09-19 15:33:52 -050042 extensions/openpower-pels/registry.cpp \
Matt Spinler131870c2019-09-25 13:29:04 -050043 extensions/openpower-pels/section_factory.cpp \
Matt Spinler1962e082020-08-05 13:44:53 -050044 extensions/openpower-pels/service_indicators.cpp \
Matt Spinler8c686cc2019-09-20 13:46:02 -050045 extensions/openpower-pels/severity.cpp \
Matt Spinler03c1d912019-07-10 14:12:15 -050046 extensions/openpower-pels/user_header.cpp
Matt Spinler44792fd2019-09-26 15:58:58 -050047
Matt Spinler7b5342c2019-11-06 14:48:43 -060048libpel_ldflags = \
49 $(SYSTEMD_LIBS) \
50 $(PHOSPHOR_LOGGING_LIBS) \
51 $(SDBUSPLUS_LIBS) \
52 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
53 $(SDEVENTPLUS_LIBS) \
Matt Spinler22421b92020-07-17 09:41:08 -050054 $(FMT_LIBS) \
Matt Spinler7b5342c2019-11-06 14:48:43 -060055 -lstdc++fs
56
57libpel_la_LIBADD = $(libpel_ldflags)
58
59libpel_cxx_flags = \
60 $(SYSTEMD_CFLAGS) \
61 $(SDBUSPLUS_CFLAGS) \
62 $(SDEVENTPLUS_CFLAGS) \
Andrew Geissler66c8c182020-05-19 12:46:23 -050063 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
64 -Wno-stringop-truncation
Matt Spinler7b5342c2019-11-06 14:48:43 -060065
Andrew Geissler27408b32020-05-19 12:44:07 -050066libpel_la_CXXFLAGS = $(libpel_cxx_flags)
67
Matt Spinler44792fd2019-09-26 15:58:58 -050068registrydir = $(datadir)/phosphor-logging/pels/
69registry_DATA = extensions/openpower-pels/registry/message_registry.json
Aatir186ce8c2019-10-20 15:13:39 -050070
71bin_PROGRAMS += peltool
72
Matt Spinleracb7c102020-01-10 13:49:22 -060073peltool_SOURCES = \
74 extensions/openpower-pels/tools/peltool.cpp \
Harisuddin Mohamed Isac8d6cc62020-08-19 22:47:19 +080075 extensions/openpower-pels/src.cpp \
Matt Spinleracb7c102020-01-10 13:49:22 -060076 extensions/openpower-pels/user_data.cpp \
77 extensions/openpower-pels/user_data_json.cpp
Harisuddin Mohamed Isaf67bafd2020-07-06 17:51:21 +080078peltool_LDFLAGS = "-lpython$(PYTHON_VERSION)"
Matt Spinler7b5342c2019-11-06 14:48:43 -060079peltool_LDADD = libpel.la
Matt Spinleracb7c102020-01-10 13:49:22 -060080peltool_CXXFLAGS = "-DPELTOOL"