blob: 812cc9a1767f6aa6b31e5ebe9a4d02c846365377 [file] [log] [blame]
Ed Tanous2c2a1c52018-01-29 10:56:52 -08001LICENSE = "Apache-2.0"
Andrew Geisslere11f5e22021-07-20 18:10:59 +00002LIC_FILES_CHKSUM = "file://LICENSE;md5=175792518e4ac015ab6696d16c4f607e"
Ed Tanous07f48cc2021-02-22 10:49:30 -08003DEPENDS = " \
4 openssl \
5 zlib \
6 boost \
Ed Tanous07f48cc2021-02-22 10:49:30 -08007 libpam \
8 sdbusplus \
9 gtest \
10 nlohmann-json \
11 libtinyxml2 \
Ed Tanousa443c542021-02-26 13:28:37 -080012 ${@bb.utils.contains('PTEST_ENABLED', '1', 'gtest', '', d)} \
13 ${@bb.utils.contains('PTEST_ENABLED', '1', 'gmock', '', d)} \
Ed Tanous07f48cc2021-02-22 10:49:30 -080014"
Andrew Geisslere5e8d1a2023-03-27 14:10:38 -050015SRCREV = "0ed80c8ce93a38eca6951ffad5c3143a3a720053"
Ed Tanous9936f862022-09-19 09:13:20 -070016PV = "1.0+git${SRCPV}"
Ed Tanous2c2a1c52018-01-29 10:56:52 -080017
Patrick Williams0b73b982023-01-26 10:24:41 -060018SRC_URI = "git://github.com/openbmc/bmcweb.git;branch=master;protocol=https"
Ed Tanous9936f862022-09-19 09:13:20 -070019SRC_URI += " \
20 file://run-ptest \
Ed Tanous07f48cc2021-02-22 10:49:30 -080021"
Adriana Kobylak7e0ff54f2018-12-13 11:01:05 -060022
Ed Tanous9936f862022-09-19 09:13:20 -070023S = "${WORKDIR}/git"
24SYSTEMD_SERVICE:${PN} += "bmcweb.service bmcweb.socket"
Ed Tanousa443c542021-02-26 13:28:37 -080025
Ed Tanous9936f862022-09-19 09:13:20 -070026inherit systemd
27inherit useradd
28inherit pkgconfig meson ptest
Ed Tanous2c2a1c52018-01-29 10:56:52 -080029
Ed Tanousa443c542021-02-26 13:28:37 -080030EXTRA_OEMESON = " \
31 --buildtype=minsize \
32 -Dtests=${@bb.utils.contains('PTEST_ENABLED', '1', 'enabled', 'disabled', d)} \
Ed Tanousa443c542021-02-26 13:28:37 -080033"
Ed Tanous2c2a1c52018-01-29 10:56:52 -080034
Ed Tanous9936f862022-09-19 09:13:20 -070035do_install_ptest() {
36 install -d ${D}${PTEST_PATH}/test
37 cp -rf ${B}/*_test ${D}${PTEST_PATH}/test/
38}
Ed Tanous2c2a1c52018-01-29 10:56:52 -080039
Ed Tanous9936f862022-09-19 09:13:20 -070040RDEPENDS:${PN} += " \
41 jsnbd \
Patrick Williams0450a022022-10-07 21:23:47 -050042 phosphor-objmgr \
Ed Tanous9936f862022-09-19 09:13:20 -070043"
44
45FILES:${PN} += "${datadir}/** "
46
47USERADD_PACKAGES = "${PN}"
48# add a user called httpd for the server to assume
49USERADD_PARAM:${PN} = "-r -s /sbin/nologin bmcweb"
50
51GROUPADD_PARAM:${PN} = "web; redfish"
Andrew Jeffery224f26f2023-03-10 12:38:57 +103052FULL_OPTIMIZATION:append = " -Os"