blob: a5d277993de0da4f6cdf7291136d7de8bed1a579 [file] [log] [blame]
Patrick Venture540b64d2018-11-28 14:56:28 -08001ACLOCAL_AMFLAGS = -I m4
Patrick Ventureef3aead2018-09-12 08:53:29 -07002AM_DEFAULT_SOURCE_EXT = .cpp
3
Patrick Venturea2efc762019-03-06 13:23:42 -08004# Ignore system headers
5CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*'
6export CODE_COVERAGE_IGNORE_PATTERN
7
8CODE_COVERAGE_LCOV_SHOPTS = $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
9# Use our configuration file for lcov
10CODE_COVERAGE_LCOV_SHOPTS += --config-file $(abs_srcdir)/.lcovrc
11export CODE_COVERAGE_LCOV_SHOPTS
12
13CODE_COVERAGE_LCOV_OPTIONS = $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
14# Use our configuration file for lcov
15CODE_COVERAGE_LCOV_OPTIONS += --config-file $(abs_srcdir)/.lcovrc
16export CODE_COVERAGE_LCOV_OPTIONS
17
18CODE_COVERAGE_LCOV_RMOPTS = $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
19# Use our configuration file for lcov
20CODE_COVERAGE_LCOV_RMOPTS += --config-file $(abs_srcdir)/.lcovrc
21export CODE_COVERAGE_LCOV_RMOPTS
22
23CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
24# Use our configuration file for genhtml
25CODE_COVERAGE_GENHTML_OPTIONS += --config-file $(abs_srcdir)/.lcovrc
26# Don't generate the absolute path for each file in the HTML output
27CODE_COVERAGE_GENHTML_OPTIONS += --prefix $(abs_srcdir) --prefix $(abs_builddir)
28export CODE_COVERAGE_GENHTML_OPTIONS
29
Patrick Ventureef3aead2018-09-12 08:53:29 -070030libblobcmdsdir = ${libdir}/ipmid-providers
31libblobcmds_LTLIBRARIES = libblobcmds.la
Patrick Venture904f24f2018-11-09 08:33:46 -080032libblobcmds_la_SOURCES = \
33 main.cpp \
34 ipmi.cpp \
35 manager.cpp \
36 process.cpp \
37 crc.cpp \
Patrick Venturec18e2b62018-11-21 14:19:28 -080038 utils.cpp \
39 internal/sys.cpp \
40 fs.cpp
Patrick Ventureef3aead2018-09-12 08:53:29 -070041
Patrick Venture904f24f2018-11-09 08:33:46 -080042libblobcmds_la_LDFLAGS = \
43 $(SYSTEMD_LIBS) \
44 $(LIBADD_DLOPEN) \
45 $(PHOSPHOR_LOGGING_LIBS) \
William A. Kennington IIIacebece2019-02-07 15:15:44 -080046 $(LIBIPMID_LIBS) \
Patrick Venturea2efc762019-03-06 13:23:42 -080047 $(CODE_COVERAGE_LIBS) \
Patrick Venture904f24f2018-11-09 08:33:46 -080048 -lstdc++fs \
Patrick Venturedf209fa2018-11-13 16:11:17 -080049 -export-dynamic \
Patrick Venture904f24f2018-11-09 08:33:46 -080050 -version-info 0:0:0 -shared
Patrick Ventureef3aead2018-09-12 08:53:29 -070051
Patrick Venture904f24f2018-11-09 08:33:46 -080052libblobcmds_la_CXXFLAGS = \
53 $(SYSTEMD_CFLAGS) \
Patrick Venture45e428a2018-11-09 08:36:11 -080054 $(PHOSPHOR_LOGGING_CFLAGS) \
William A. Kennington IIIacebece2019-02-07 15:15:44 -080055 $(LIBIPMID_CFLAGS) \
Patrick Venturea2efc762019-03-06 13:23:42 -080056 $(CODE_COVERAGE_CXXFLAGS) \
Patrick Venture45e428a2018-11-09 08:36:11 -080057 -flto
Patrick Ventureef3aead2018-09-12 08:53:29 -070058
Patrick Ventureaceb4ba2018-09-27 14:50:37 -070059nobase_include_HEADERS = \
Patrick Venturecd8dab42019-01-15 19:57:38 -080060 blobs-ipmid/blobs.hpp
Patrick Ventureaceb4ba2018-09-27 14:50:37 -070061
Patrick Venturee2255402018-10-03 11:12:53 -070062# Install the blob handlers in ipmid-providers so you can leverage
63# meta-phosphor/blob/master/classes/obmc-phosphor-ipmiprovider-symlink.bbclass
64# Which will create a symlink in ${D}/${libdir}/blob-ipmid/ pointing to the
65# library in ${D}/${libdir}/ipmid-providers/
66
Patrick Venture5100a382018-09-27 10:40:50 -070067# Always build but only installed if you add the item:
68# BLOBIPMI_PROVIDER_LIBRARY += "libexample.so"
Patrick Venturee2255402018-10-03 11:12:53 -070069libblobexampledir = ${libdir}/ipmid-providers
70libblobexample_LTLIBRARIES = libblobexample.la
71libblobexample_la_SOURCES = example/example.cpp
Patrick Venture904f24f2018-11-09 08:33:46 -080072libblobexample_la_LDFLAGS = \
73 $(PHOSPHOR_LOGGING_LIBS) \
Patrick Venturea2efc762019-03-06 13:23:42 -080074 $(CODE_COVERAGE_LIBS) \
Patrick Venture904f24f2018-11-09 08:33:46 -080075 -version-info 0:0:0 -shared
76libblobexample_la_CXXFLAGS = \
77 $(PHOSPHOR_LOGGING_CFLAGS) \
Patrick Venturea2efc762019-03-06 13:23:42 -080078 $(CODE_COVERAGE_CXXFLAGS) \
Patrick Venture904f24f2018-11-09 08:33:46 -080079 -flto
Patrick Venture5100a382018-09-27 10:40:50 -070080
Patrick Ventureef3aead2018-09-12 08:53:29 -070081SUBDIRS = . test