summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-support/boost
AgeCommit message (Collapse)AuthorFilesLines
2021-08-11meta-phosphor: prep for new override syntaxPatrick Williams1-2/+2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I588025b614416c43aa2d053765ab53bacf890cb5
2021-05-27Reapply boost library filteringEd Tanous1-1/+1
6be1787fdc13405fa9daa6755c28534bbcaa7458 reverted this change temporarily to get around a yocto recipe refactor that was preventing us from upgrading cleanly. Unfortunately, there's nothing more permanent than a temporary hack, so this patch never got reapplied. Recently, we've had issues with Palmetto failing to build boost::regex with an error: ./boost/regex/v5/mem_block_cache.hpp:91:11: error: 'static_mutex' in namespace 'boost' does not name a type Considering OpenBMC doesn't use boost regex (or a bunch of the other boost libraries) we shouldn't be building them. For reference, 57acb4680f999e0b2ab96e87fa5313defddeb577 was the original patch, and contains more details on the advantages of this, but the keys are we reduce the build times significantly by only building the two libraries OpenBMC uses, and we avoid bugs like this in boost modules we don't care about, as we're only building the modules we use. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I4006618c6553d72bf7f47baadb0c3e35e141bdc9
2020-11-03Revert "Move context and coroutine"Andrew Geissler1-5/+7
This reverts commit 6be1787fdc13405fa9daa6755c28534bbcaa7458. openbmc/openbmc#3720 tracks the issue we've been having with the latest poky update. For now we're going to have to revert it which means we need to go back to handling the older boost. Lets revert this so we go back to not minimizing our boost library which will cause a bit larger library in flash but allow us to support both the old and new boost packaging. (From meta-phosphor rev: 3ee1f9df23ab04871297676c265dfcf0a8db38f4) Change-Id: Ib45de998931142ea74dffddafd960b7513717a18 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-21Move context and coroutineEd Tanous1-7/+5
Yocto upstream moved context and coroutine directly into BOOST_LIBS, which means that they're not added back for our arm variant. https://github.com/lgirdk/poky/commit/624262541605c476f5a0bd415b08d00379c15b00 This causes our build to fail with "cannot find -lboost_coroutine" errors. This should resolve it. Tested: Fixing CI break. No functional testing done. (From meta-phosphor rev: 6be1787fdc13405fa9daa6755c28534bbcaa7458) Signed-off-by: Ed Tanous <ed@tanous.net> Change-Id: I60d7bb8ea25a08bfdb399f8addfaf560fd7a7b7c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-19boost: temp fix for upstream yocto boost changeAndrew Geissler1-1/+1
Yocto upstream moved context and coroutine directly into BOOST_LIBS, which means that they're not added back for our arm variant. https://github.com/lgirdk/poky/commit/624262541605c476f5a0bd415b08d00379c15b00 Temporarily remove our BOOST_LIBS override so we can pull the upstream yocto in, then come back and add specifically what we need again. Tested: None, letting CI verify it (From meta-phosphor rev: 8c30e9b47641854502a31c0a8402d3142586fd55) Change-Id: I4f174a2473525a02e5c5c080ffc90929f5e4770e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-20Enforce the coding standard usages of boostEd Tanous1-0/+12
3 years ago, we pushed a patch to allow the usage of boost libraries, and deleted the phrase "If you give a mouse a cookie". Seemingly, we've done a decent job of not asking for glass of milk, despite the cookie being given. https://github.com/openbmc/docs/commit/56d79455f15ef07be326e59fde4b47ca5866a30c This commit adds some enforcement of this by removing the libraries that are disallowed by the coding standard, and ensuring that only the boost headers are passed through the build. This means that it reduces a large bottleneck in the build, and saves a significant amount of build time (about 5 minutes the last time I measured it). After a discussion a long time ago, it was deemed that coroutine and context would be allowed in, given that they solved a significant problem, and didn't add a large binary size to the image. This patchset preserves those two libraries. I've had this patch locally for a long time to improve my build times; I only remembered it because boost-url broke it given that by default it builds in c++11 mode, which requires boost. As such, I have modified our build of it to build in standalone mode, which relies on c++17 semantics, and does not require boost libraries. This is added as a bbappend, given that it will likely be deleted from meta-phosphor shortly, once we merge in the latest yocto tree, which has accepted it. Tested: Built with the patchset below. obmc-phosphor-image builds in significantly less time, which no sstate cache. (From meta-phosphor rev: 69e46c2f6f94563762c57382f7dfcc6ac84229b5) Signed-off-by: Ed Tanous <ed@tanous.net> Change-Id: I44b849ad395092254a0df84e219e6e78b47625f1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>