summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-phosphor/interfaces/bmcweb_%.bbappend
blob: 52598bf15248b4c166e8095b584e0b365641d7fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# todo(james) remove nobranch
SRC_URI = "git://github.com/openbmc/bmcweb.git"
SRCREV = "6964c9820ad101d6fc30badd1ae353efea3dd094"

DEPENDS += "boost-url"

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

# add a user called bmcweb for the server to assume
# bmcweb is part of group shadow for non-root pam authentication
USERADD_PARAM_${PN} = "-r -s /usr/sbin/nologin -d /home/bmcweb -m -G shadow bmcweb"

GROUPADD_PARAM_${PN} = "web; redfish "

SRC_URI += "file://0001-Firmware-update-support-for-StandBySpare.patch \
            file://0002-Use-chip-id-based-UUID-for-Service-Root.patch \
            file://0003-bmcweb-changes-for-setting-ApplyOptions-ClearCfg.patch \
            file://0004-Remove-QueryString.patch \
            file://0004-bmcweb-handle-device-or-resource-busy-exception.patch \
            file://0005-EventService-https-client-support.patch \
            file://0005-VirtualMedia-fixes-for-Redfish-Service-Validator.patch \
            file://0006-Fix-Image-and-ImageName-values-in-schema.patch \
            file://0007-cpudimm-get-cpu-details-from-Redfish.patch \
            file://0008-systems-Fix-for-Processor-Summary-Model.patch \
            file://0009-Fix-MetricReportDefinitions-filter-not-working.patch \
            file://0010-Fix-EventService-stops-sending-events.patch \
            file://0011-Deallocate-memory-during-failed-case.patch \
            file://0012-System-Replace-chassis-name-in-Redfish.patch \
            file://0013-url_view-throws-if-a-parse-error-is-found.patch \
            file://0014-add-sufficient-delay-to-create-fw-update-object.patch \
            file://0009-Workaround-Fix-memory-leak.patch \
            file://0015-Add-firmware-activation-messages-to-the-registry.patch \
            file://0016-EventService-Fix-type-mismatch-in-MetricReport.patch \
            file://0017-Add-MutualExclusiveProperties-registry.patch \
            file://0018-Add-sse-event-sequence-number.patch \
            file://0019-EventService-Limit-SSE-connections-as-per-design.patch \
            file://0020-EventService-Validate-SSE-query-filters.patch \
"

# Temporary downstream mirror of upstream patches, see telemetry\README for details
SRC_URI += "file://telemetry/0001-Redfish-TelemetryService-schema-implementation.patch \
            file://telemetry/0002-Add-support-for-POST-in-MetricReportDefinitions.patch \
            file://telemetry/0003-Add-support-for-DELETE-in-MetricReportDefinitions-st.patch \
            file://telemetry/0004-Add-support-for-OnRequest-in-MetricReportDefinition.patch \
            file://telemetry/0005-Add-support-for-MetricDefinition-scheme.patch \
"

# Temporary fix: Move it to service file
do_install_append() {
        install -d ${D}/var/lib/bmcweb
}

# Enable PFR support
EXTRA_OECMAKE += "${@bb.utils.contains('IMAGE_FSTYPES', 'intel-pfr', '-DBMCWEB_ENABLE_REDFISH_PROVISIONING_FEATURE=ON', '', d)}"

# Enable NBD proxy embedded in bmcweb
EXTRA_OECMAKE += " -DBMCWEB_ENABLE_VM_NBDPROXY=ON"

# Disable dependency on external nbd-proxy application
EXTRA_OECMAKE += " -DBMCWEB_ENABLE_VM_WEBSOCKET=OFF"
RDEPENDS_${PN}_remove += "jsnbd"

# Enable Validation unsecure based on IMAGE_FEATURES
EXTRA_OECMAKE += "${@bb.utils.contains('EXTRA_IMAGE_FEATURES', 'validation-unsecure', '-DBMCWEB_ENABLE_VALIDATION_UNSECURE_FEATURE=ON', '', d)}"