Brad Bishop | 4c3712f | 2019-04-24 19:44:31 -0400 | [diff] [blame] | 1 | inherit systemd |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 2 | inherit useradd |
| 3 | |
| 4 | USERADD_PACKAGES = "${PN}" |
| 5 | |
| 6 | # add a user called httpd for the server to assume |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 7 | USERADD_PARAM:${PN} = "-r -s /usr/sbin/nologin bmcweb" |
| 8 | GROUPADD_PARAM:${PN} = "web; redfish" |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 9 | |
| 10 | LICENSE = "Apache-2.0" |
Andrew Geissler | e11f5e2 | 2021-07-20 18:10:59 +0000 | [diff] [blame] | 11 | LIC_FILES_CHKSUM = "file://LICENSE;md5=175792518e4ac015ab6696d16c4f607e" |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 12 | |
Andrew Geissler | bda0022 | 2022-02-02 21:30:58 +0000 | [diff] [blame] | 13 | SRC_URI = "git://github.com/openbmc/bmcweb.git;branch=master;protocol=https;nobranch=1" |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 14 | |
| 15 | PV = "1.0+git${SRCPV}" |
Andrew Geissler | b410427 | 2022-03-18 15:40:19 +0000 | [diff] [blame^] | 16 | SRCREV = "4ed47cb82da65cf8c84bb0be8ff98c6a208a550d" |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
Ed Tanous | 5ac6144 | 2022-02-02 21:30:58 +0000 | [diff] [blame] | 20 | CXXFLAGS:append = " -DNEW_BOOST_URL" |
| 21 | |
Andrew Geissler | ec34cc6 | 2021-11-03 09:57:52 -0500 | [diff] [blame] | 22 | inherit pkgconfig meson ptest |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 23 | |
| 24 | SRC_URI += " \ |
| 25 | file://run-ptest \ |
| 26 | " |
| 27 | |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 28 | DEPENDS = " \ |
| 29 | openssl \ |
| 30 | zlib \ |
| 31 | boost \ |
| 32 | boost-url \ |
| 33 | libpam \ |
| 34 | sdbusplus \ |
| 35 | gtest \ |
| 36 | nlohmann-json \ |
| 37 | libtinyxml2 \ |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 38 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'gtest', '', d)} \ |
| 39 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'gmock', '', d)} \ |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 40 | " |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 41 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 42 | RDEPENDS:${PN} += " \ |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 43 | jsnbd \ |
Ed Tanous | 4073a4f | 2021-02-22 10:50:59 -0800 | [diff] [blame] | 44 | phosphor-mapper \ |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 45 | " |
Adriana Kobylak | 7e0ff54f | 2018-12-13 11:01:05 -0600 | [diff] [blame] | 46 | |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 47 | do_install_ptest() { |
| 48 | install -d ${D}${PTEST_PATH}/test |
Ed Tanous | d7afac7 | 2021-04-01 16:09:06 -0700 | [diff] [blame] | 49 | cp -rf ${B}/*_test ${D}${PTEST_PATH}/test/ |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 50 | } |
| 51 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 52 | FILES:${PN} += "${datadir}/** " |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 53 | |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 54 | |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 55 | EXTRA_OEMESON = " \ |
| 56 | --buildtype=minsize \ |
| 57 | -Dtests=${@bb.utils.contains('PTEST_ENABLED', '1', 'enabled', 'disabled', d)} \ |
| 58 | -Dyocto-deps=enabled \ |
| 59 | " |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 60 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 61 | SYSTEMD_SERVICE:${PN} += "bmcweb.service bmcweb.socket" |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 62 | |
Manojkiran Eda | f1f2e24 | 2020-09-02 21:48:12 +0530 | [diff] [blame] | 63 | FULL_OPTIMIZATION = "-Os " |