xref: /openbmc/openbmc/meta-phosphor/recipes-support/boost/boost_%.bbappend (revision 8ebfff759574c3322298c3f49364e9c1b9c676f3)
19936f86dSEd TanousPACKAGECONFIG:openbmc-phosphor:class-target = ""
29936f86dSEd Tanous
39eeb80ffSEd Tanous#This is largely to improve our build times by not building or installing
456a8292bSAndrew Geissler#modules that OpenBMC does not use by our coding standard.  Another thing to
556a8292bSAndrew Geissler#note is that for most targets, coroutine and context libraries are also added
612fc939cSPatrick Williams#with a BOOST_LIBS:append:<platform> for most targets.  Chrono/Thread should not
756a8292bSAndrew Geissler#be relied directly, but are required dependencies of context and coroutine.
856a8292bSAndrew Geissler#See the relevant portion of the openbmc coding standard with regards to boost
956a8292bSAndrew Geissler#libraries
109eeb80ffSEd Tanous#
119eeb80ffSEd Tanous#https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#boost
129eeb80ffSEd Tanous#
133969ff8dSAlexander KanavinBOOST_LIBS:openbmc-phosphor:class-target = " \
14f511aa6eSPatrick Williams    chrono \
15f511aa6eSPatrick Williams    context \
16f511aa6eSPatrick Williams    coroutine \
17*8ebfff75SEd Tanous    date_time \
18f511aa6eSPatrick Williams    process \
19f511aa6eSPatrick Williams    thread \
20f511aa6eSPatrick Williams    url \
21f511aa6eSPatrick Williams    ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'serialization', '', d)} \
22f511aa6eSPatrick Williams"
23f511aa6eSPatrick Williams# When libcereal is compiled with ptest, it needs boost to support
24f511aa6eSPatrick Williams# 'serialization'.
25d778f563SJayanth Othayoth
26*8ebfff75SEd Tanous
27*8ebfff75SEd Tanous# Openbmc applications should be setting BOOST_SYSTEM_NO_DEPRECATED
28*8ebfff75SEd Tanous# For whatever reason, boost 1.87 has decided to install this library
29*8ebfff75SEd Tanous# unconditionally.  It's not clear why, but just ignore it for now
30*8ebfff75SEd Tanous# by categorizing it as a dev dependency
31*8ebfff75SEd TanousFILES:${PN}-dev:append = " \
32*8ebfff75SEd Tanous    ${libdir}/libboost_system*.so.* \
33*8ebfff75SEd Tanous"
34*8ebfff75SEd Tanous
35*8ebfff75SEd TanousBJAM_OPTS:append = " boost.process.fs=std"
36*8ebfff75SEd Tanous
37f511aa6eSPatrick Williams# etcd requires some additional support.
38d778f563SJayanth OthayothBOOST_LIBS:openbmc-phosphor:class-target:append:df-etcd = " \
39f511aa6eSPatrick Williams    random \
40f511aa6eSPatrick Williams    regex \
41f511aa6eSPatrick Williams    system \
42f511aa6eSPatrick Williams"
43