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 | |
Ed Tanous | 6e3195d | 2018-03-20 08:42:54 -0700 | [diff] [blame] | 13 | SRC_URI = "git://github.com/openbmc/bmcweb.git" |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 14 | |
| 15 | PV = "1.0+git${SRCPV}" |
Andrew Geissler | 00338bc | 2021-12-07 17:31:02 +0000 | [diff] [blame^] | 16 | SRCREV = "116c184bd30d0d8e0227dac946fa4ea00e2035bf" |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
Andrew Geissler | ec34cc6 | 2021-11-03 09:57:52 -0500 | [diff] [blame] | 20 | inherit pkgconfig meson ptest |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 21 | |
| 22 | SRC_URI += " \ |
| 23 | file://run-ptest \ |
| 24 | " |
| 25 | |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 26 | DEPENDS = " \ |
| 27 | openssl \ |
| 28 | zlib \ |
| 29 | boost \ |
| 30 | boost-url \ |
| 31 | libpam \ |
| 32 | sdbusplus \ |
| 33 | gtest \ |
| 34 | nlohmann-json \ |
| 35 | libtinyxml2 \ |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 36 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'gtest', '', d)} \ |
| 37 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'gmock', '', d)} \ |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 38 | " |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 39 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 40 | RDEPENDS:${PN} += " \ |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 41 | jsnbd \ |
Ed Tanous | 4073a4f | 2021-02-22 10:50:59 -0800 | [diff] [blame] | 42 | phosphor-mapper \ |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 43 | " |
Adriana Kobylak | 7e0ff54f | 2018-12-13 11:01:05 -0600 | [diff] [blame] | 44 | |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 45 | do_install_ptest() { |
| 46 | install -d ${D}${PTEST_PATH}/test |
Ed Tanous | d7afac7 | 2021-04-01 16:09:06 -0700 | [diff] [blame] | 47 | cp -rf ${B}/*_test ${D}${PTEST_PATH}/test/ |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 48 | } |
| 49 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 50 | FILES:${PN} += "${datadir}/** " |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 51 | |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 52 | |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 53 | EXTRA_OEMESON = " \ |
| 54 | --buildtype=minsize \ |
| 55 | -Dtests=${@bb.utils.contains('PTEST_ENABLED', '1', 'enabled', 'disabled', d)} \ |
| 56 | -Dyocto-deps=enabled \ |
| 57 | " |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 58 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 59 | SYSTEMD_SERVICE:${PN} += "bmcweb.service bmcweb.socket" |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 60 | |
Manojkiran Eda | f1f2e24 | 2020-09-02 21:48:12 +0530 | [diff] [blame] | 61 | FULL_OPTIMIZATION = "-Os " |