Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 1 | LICENSE = "Apache-2.0" |
Andrew Geissler | e11f5e2 | 2021-07-20 18:10:59 +0000 | [diff] [blame] | 2 | LIC_FILES_CHKSUM = "file://LICENSE;md5=175792518e4ac015ab6696d16c4f607e" |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 3 | DEPENDS = " \ |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 4 | boost \ |
Andrew Geissler | 82b9d02 | 2024-08-26 15:40:51 -0500 | [diff] [blame] | 5 | cli11 \ |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 6 | gtest \ |
Andrew Geissler | 82b9d02 | 2024-08-26 15:40:51 -0500 | [diff] [blame] | 7 | libpam \ |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 8 | libtinyxml2 \ |
Ed Tanous | a994d3a | 2021-06-16 12:44:37 -0700 | [diff] [blame] | 9 | nghttp2 \ |
Andrew Geissler | 82b9d02 | 2024-08-26 15:40:51 -0500 | [diff] [blame] | 10 | nlohmann-json \ |
| 11 | openssl \ |
| 12 | sdbusplus \ |
| 13 | zlib \ |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 14 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'gtest', '', d)} \ |
| 15 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'gmock', '', d)} \ |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 16 | " |
Andrew Geissler | 4f0984a | 2024-09-23 10:50:36 -0500 | [diff] [blame] | 17 | SRCREV = "a14c9113226dcae33a36eb4e50abbcc28be998ae" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 18 | PV = "1.0+git${SRCPV}" |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 19 | |
Patrick Williams | 0b73b98 | 2023-01-26 10:24:41 -0600 | [diff] [blame] | 20 | SRC_URI = "git://github.com/openbmc/bmcweb.git;branch=master;protocol=https" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 21 | SRC_URI += " \ |
| 22 | file://run-ptest \ |
Ed Tanous | 07f48cc | 2021-02-22 10:49:30 -0800 | [diff] [blame] | 23 | " |
Adriana Kobylak | 7e0ff54f | 2018-12-13 11:01:05 -0600 | [diff] [blame] | 24 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 25 | S = "${WORKDIR}/git" |
| 26 | SYSTEMD_SERVICE:${PN} += "bmcweb.service bmcweb.socket" |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 27 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 28 | inherit systemd |
| 29 | inherit useradd |
| 30 | inherit pkgconfig meson ptest |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 31 | |
Patrick Williams | 4b5fdfa | 2024-02-23 09:35:19 -0600 | [diff] [blame] | 32 | PACKAGECONFIG ??= "mutual-tls-auth" |
Patrick Williams | a758752 | 2023-06-13 14:43:24 -0500 | [diff] [blame] | 33 | PACKAGECONFIG[insecure-redfish-expand]="-Dinsecure-enable-redfish-query=enabled" |
Patrick Williams | 4b5fdfa | 2024-02-23 09:35:19 -0600 | [diff] [blame] | 34 | PACKAGECONFIG[mutual-tls-auth]="-Dmutual-tls-auth=enabled,-Dmutual-tls-auth=disabled" |
Patrick Williams | a758752 | 2023-06-13 14:43:24 -0500 | [diff] [blame] | 35 | |
Andrew Geissler | 5048d53 | 2024-07-14 16:00:31 -0500 | [diff] [blame] | 36 | MUTUAL_TLS_PARSING="CommonName" |
Patrick Williams | de59cd5 | 2024-02-23 09:46:37 -0600 | [diff] [blame] | 37 | |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 38 | EXTRA_OEMESON = " \ |
| 39 | --buildtype=minsize \ |
| 40 | -Dtests=${@bb.utils.contains('PTEST_ENABLED', '1', 'enabled', 'disabled', d)} \ |
Patrick Williams | de59cd5 | 2024-02-23 09:46:37 -0600 | [diff] [blame] | 41 | ${@bb.utils.contains('PACKAGECONFIG', 'mutual-tls-auth', \ |
Andrew Geissler | 5048d53 | 2024-07-14 16:00:31 -0500 | [diff] [blame] | 42 | '-Dmutual-tls-common-name-parsing-default=' + d.getVar('MUTUAL_TLS_PARSING', True), \ |
Patrick Williams | de59cd5 | 2024-02-23 09:46:37 -0600 | [diff] [blame] | 43 | '', d)} \ |
Ed Tanous | a443c54 | 2021-02-26 13:28:37 -0800 | [diff] [blame] | 44 | " |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 45 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 46 | do_install_ptest() { |
| 47 | install -d ${D}${PTEST_PATH}/test |
| 48 | cp -rf ${B}/*_test ${D}${PTEST_PATH}/test/ |
| 49 | } |
Ed Tanous | 2c2a1c5 | 2018-01-29 10:56:52 -0800 | [diff] [blame] | 50 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 51 | RDEPENDS:${PN} += " \ |
| 52 | jsnbd \ |
Patrick Williams | 0450a02 | 2022-10-07 21:23:47 -0500 | [diff] [blame] | 53 | phosphor-objmgr \ |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 54 | " |
| 55 | |
| 56 | FILES:${PN} += "${datadir}/** " |
| 57 | |
| 58 | USERADD_PACKAGES = "${PN}" |
| 59 | # add a user called httpd for the server to assume |
| 60 | USERADD_PARAM:${PN} = "-r -s /sbin/nologin bmcweb" |
| 61 | |
Ninad Palsule | 34d2144 | 2023-03-09 10:20:38 -0600 | [diff] [blame] | 62 | GROUPADD_PARAM:${PN} = "web; redfish; hostconsole" |
Andrew Jeffery | 224f26f | 2023-03-10 12:38:57 +1030 | [diff] [blame] | 63 | FULL_OPTIMIZATION:append = " -Os" |