blob: 6de07ce5dd1568c63cfaebe74437dbe4d670d025 [file] [log] [blame]
inherit obmc-phosphor-systemd
inherit useradd
USERADD_PACKAGES = "${PN}"
# add a user called httpd for the server to assume
USERADD_PARAM_${PN} = "-r -s /usr/sbin/nologin bmcweb"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENCE;md5=a6a4edad4aed50f39a66d098d74b265b"
SRC_URI = "git://github.com/openbmc/bmcweb.git"
PV = "1.0+git${SRCPV}"
SRCREV = "bba177641ee3628bde0ce80a8bcf172ca3cea0d0"
S = "${WORKDIR}/git"
DEPENDS = "dbus openssl zlib boost libpam boost-dbus gtest nlohmann-json libtinyxml2 "
FILES_${PN} += "${datadir}/** "
inherit cmake
EXTRA_OECMAKE = "-DBMCWEB_BUILD_UT=OFF -DYOCTO_DEPENDENCIES=ON"
SYSTEMD_SERVICE_${PN} += "bmcweb.service"
FULL_OPTIMIZATION = "-Os -pipe "
do_install_append() {
rm -rf ${D}${includedir}/dbus
rm -rf ${D}${libdir}/cmake
}