diff options
Diffstat (limited to 'meta-phosphor/recipes-support')
5 files changed, 47 insertions, 2 deletions
diff --git a/meta-phosphor/recipes-support/boost-url/boost-url_%.bbappend b/meta-phosphor/recipes-support/boost-url/boost-url_%.bbappend new file mode 100644 index 000000000..5ef4f9fe9 --- /dev/null +++ b/meta-phosphor/recipes-support/boost-url/boost-url_%.bbappend @@ -0,0 +1 @@ +EXTRA_OECMAKE_append_openbmc-phosphor = "-DBOOST_URL_STANDALONE=ON" diff --git a/meta-phosphor/recipes-support/boost-url/boost-url_git.bb b/meta-phosphor/recipes-support/boost-url/boost-url_git.bb new file mode 100644 index 000000000..6d4635b66 --- /dev/null +++ b/meta-phosphor/recipes-support/boost-url/boost-url_git.bb @@ -0,0 +1,17 @@ +DESCRIPTION = "Boost.URL is a library for manipulating Uniform Resource Identifiers (URI) and Locators (URL)" +HOMEPAGE = "https://github.com/CPPAlliance/url" +SECTION = "libs" +LICENSE = "BSL-1.0" +LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c" + +SRC_URI = "git://github.com/CPPAlliance/url.git" + +SRCREV = "a56ae0df6d3078319755fbaa67822b4fa7fd352b" + +S = "${WORKDIR}/git" + +inherit cmake + +DEPENDS = "boost" + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-phosphor/recipes-support/boost/boost_%.bbappend b/meta-phosphor/recipes-support/boost/boost_%.bbappend new file mode 100644 index 000000000..b614346af --- /dev/null +++ b/meta-phosphor/recipes-support/boost/boost_%.bbappend @@ -0,0 +1,12 @@ +#This is largely to improve our build times by not building or installing +#modules that OpenBMC does not use by our coding standard. Another thing to +#note is that for most targets, coroutine and context libraries are also added +#with a BOOST_LIBS_append_<platform> for most targets. Chrono/Thread should not +#be relied directly, but are required dependencies of context and coroutine. +#See the relevant portion of the openbmc coding standard with regards to boost +#libraries +# +#https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#boost +# +#BOOST_LIBS_openbmc-phosphor = "chrono thread" + diff --git a/meta-phosphor/recipes-support/nss-pam-ldapd_fix/nss-pam-ldapd_%.bbappend b/meta-phosphor/recipes-support/nss-pam-ldapd_fix/nss-pam-ldapd_%.bbappend index d1b092d29..11e8c4a75 100644 --- a/meta-phosphor/recipes-support/nss-pam-ldapd_fix/nss-pam-ldapd_%.bbappend +++ b/meta-phosphor/recipes-support/nss-pam-ldapd_fix/nss-pam-ldapd_%.bbappend @@ -1,3 +1,5 @@ do_install_append() { + sed -i -e '$anss_initgroups_ignoreusers ALLLOCAL' ${D}${sysconfdir}/nslcd.conf + install -m 0644 ${D}${sysconfdir}/nslcd.conf ${D}${sysconfdir}/nslcd.conf.default } diff --git a/meta-phosphor/recipes-support/rng-tools/rng-tools_%.bbappend b/meta-phosphor/recipes-support/rng-tools/rng-tools_%.bbappend index 16add36d8..ce5d7994b 100644 --- a/meta-phosphor/recipes-support/rng-tools/rng-tools_%.bbappend +++ b/meta-phosphor/recipes-support/rng-tools/rng-tools_%.bbappend @@ -1,13 +1,26 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" SRC_URI += "file://10-nice.conf" +PACKAGECONFIG_remove = "\ + ${@bb.utils.contains('MACHINE_FEATURES', 'hw-rng', \ + 'libjitterentropy', '', d)}\ + " + inherit systemd FILES_${PN} += "${systemd_unitdir}/system/rngd.service.d" do_install_append() { + + # When using systemd and using libjitterentropy, install a config + # which runs rngd at a 'nice' priority. libjitterentropy uses a + # lot of CPU early on in the boot process and makes the whole boot + # go slower. if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then - install -d ${D}${systemd_unitdir}/system/rngd.service.d - install -m 644 ${WORKDIR}/10-nice.conf ${D}${systemd_unitdir}/system/rngd.service.d + if ${@bb.utils.contains('PACKAGECONFIG', 'libjitterentropy', 'true', 'false', d)}; then + install -d ${D}${systemd_unitdir}/system/rngd.service.d + install -m 644 ${WORKDIR}/10-nice.conf \ + ${D}${systemd_unitdir}/system/rngd.service.d + fi fi } |