blob: 6378ffbd567927dc92352bdfe497604ee390c383 [file] [log] [blame]
Patrick Venturef0c71df2019-06-26 19:39:36 -07001AM_DEFAULT_SOURCE_EXT = .cpp
2
Patrick Venturefd182162019-07-01 07:39:31 -07003if HAVE_SYSTEMD
4systemdsystemunit_DATA = \
5 phosphor-ipmi-flash-bmc-prepare.target \
6 phosphor-ipmi-flash-bmc-verify.target \
7 phosphor-ipmi-flash-bmc-update.target
8endif
9
Patrick Venturef0c71df2019-06-26 19:39:36 -070010noinst_LTLIBRARIES = libfirmwareblob_common.la
11libfirmwareblob_common_la_SOURCES = \
Patrick Venturef0c71df2019-06-26 19:39:36 -070012 firmware_handler.cpp \
13 file_handler.cpp \
Patrick Venturef0c71df2019-06-26 19:39:36 -070014 prepare_systemd.cpp \
15 verify_systemd.cpp \
Patrick Venture33740b92019-06-28 19:22:21 -070016 update_systemd.cpp \
17 lpc_handler.cpp
Patrick Venturef0c71df2019-06-26 19:39:36 -070018
Patrick Venturef0c71df2019-06-26 19:39:36 -070019if ENABLE_ASPEED_LPC
20libfirmwareblob_common_la_SOURCES += lpc_aspeed.cpp
21endif
Patrick Venture33740b92019-06-28 19:22:21 -070022
Patrick Venturef0c71df2019-06-26 19:39:36 -070023if ENABLE_NUVOTON_LPC
24libfirmwareblob_common_la_SOURCES += lpc_nuvoton.cpp
25endif
Patrick Venturef0c71df2019-06-26 19:39:36 -070026
Patrick Venturef0c71df2019-06-26 19:39:36 -070027if ENABLE_ASPEED_P2A
28libfirmwareblob_common_la_SOURCES += pci_handler.cpp
29endif
Patrick Venturef0c71df2019-06-26 19:39:36 -070030
31libfirmwareblob_common_la_CXXFLAGS = \
32 -I$(top_srcdir) \
33 $(SDBUSPLUS_CFLAGS) \
34 $(PHOSPHOR_LOGGING_CFLAGS) \
35 $(CODE_COVERAGE_CXXFLAGS) \
36 -flto
37libfirmwareblob_common_la_LDFLAGS = \
38 $(SDBUSPLUS_LIBS) \
39 $(PHOSPHOR_LOGGING_LIBS) \
40 $(CODE_COVERAGE_LIBS) \
41 -lstdc++fs
Patrick Venture1ff1f932019-06-27 09:57:37 -070042libfirmwareblob_common_la_LIBADD = $(top_builddir)/libfirmware_common.la
Patrick Venturef0c71df2019-06-26 19:39:36 -070043
44libfirmwareblobdir = ${libdir}/ipmid-providers
45libfirmwareblob_LTLIBRARIES = libfirmwareblob.la
46libfirmwareblob_la_SOURCES = main.cpp
47libfirmwareblob_la_LIBADD = libfirmwareblob_common.la
48libfirmwareblob_la_LDFLAGS = \
49 $(SDBUSPLUS_LIBS) \
50 $(PHOSPHOR_LOGGING_LIBS) \
51 $(CODE_COVERAGE_LIBS) \
52 -lstdc++fs \
53 -version-info 0:0:0 -shared
54libfirmwareblob_la_CXXFLAGS = \
55 -I$(top_srcdir) \
56 $(SDBUSPLUS_CFLAGS) \
57 $(PHOSPHOR_LOGGING_CFLAGS) \
58 $(CODE_COVERAGE_CXXFLAGS) \
59 -flto
60
61SUBDIRS = . test