blob: 8ada86b0c64f006d0e89756faba36d2f8745345e [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
Patrick Venture7c2a00e2019-07-01 17:33:03 -07008if ENABLE_HOST_BIOS
9systemdsystemunit_DATA += \
10 phosphor-ipmi-flash-bios-prepare.target \
11 phosphor-ipmi-flash-bios-verify.target \
12 phosphor-ipmi-flash-bios-update.target
13endif
Patrick Venturefd182162019-07-01 07:39:31 -070014endif
15
Patrick Venturef0c71df2019-06-26 19:39:36 -070016noinst_LTLIBRARIES = libfirmwareblob_common.la
17libfirmwareblob_common_la_SOURCES = \
Patrick Venturef0c71df2019-06-26 19:39:36 -070018 firmware_handler.cpp \
19 file_handler.cpp \
Patrick Venturef0c71df2019-06-26 19:39:36 -070020 prepare_systemd.cpp \
21 verify_systemd.cpp \
Patrick Venture33740b92019-06-28 19:22:21 -070022 update_systemd.cpp \
23 lpc_handler.cpp
Patrick Venturef0c71df2019-06-26 19:39:36 -070024
Patrick Venturef0c71df2019-06-26 19:39:36 -070025if ENABLE_ASPEED_LPC
26libfirmwareblob_common_la_SOURCES += lpc_aspeed.cpp
27endif
Patrick Venture33740b92019-06-28 19:22:21 -070028
Patrick Venturef0c71df2019-06-26 19:39:36 -070029if ENABLE_NUVOTON_LPC
30libfirmwareblob_common_la_SOURCES += lpc_nuvoton.cpp
31endif
Patrick Venturef0c71df2019-06-26 19:39:36 -070032
Patrick Venturef0c71df2019-06-26 19:39:36 -070033if ENABLE_ASPEED_P2A
34libfirmwareblob_common_la_SOURCES += pci_handler.cpp
35endif
Patrick Venturef0c71df2019-06-26 19:39:36 -070036
37libfirmwareblob_common_la_CXXFLAGS = \
38 -I$(top_srcdir) \
39 $(SDBUSPLUS_CFLAGS) \
40 $(PHOSPHOR_LOGGING_CFLAGS) \
41 $(CODE_COVERAGE_CXXFLAGS) \
42 -flto
43libfirmwareblob_common_la_LDFLAGS = \
44 $(SDBUSPLUS_LIBS) \
45 $(PHOSPHOR_LOGGING_LIBS) \
46 $(CODE_COVERAGE_LIBS) \
47 -lstdc++fs
Patrick Venture1ff1f932019-06-27 09:57:37 -070048libfirmwareblob_common_la_LIBADD = $(top_builddir)/libfirmware_common.la
Patrick Venturef0c71df2019-06-26 19:39:36 -070049
50libfirmwareblobdir = ${libdir}/ipmid-providers
51libfirmwareblob_LTLIBRARIES = libfirmwareblob.la
52libfirmwareblob_la_SOURCES = main.cpp
53libfirmwareblob_la_LIBADD = libfirmwareblob_common.la
54libfirmwareblob_la_LDFLAGS = \
55 $(SDBUSPLUS_LIBS) \
56 $(PHOSPHOR_LOGGING_LIBS) \
57 $(CODE_COVERAGE_LIBS) \
58 -lstdc++fs \
59 -version-info 0:0:0 -shared
60libfirmwareblob_la_CXXFLAGS = \
61 -I$(top_srcdir) \
62 $(SDBUSPLUS_CFLAGS) \
63 $(PHOSPHOR_LOGGING_CFLAGS) \
64 $(CODE_COVERAGE_CXXFLAGS) \
65 -flto
66
67SUBDIRS = . test