| SUMMARY = "Phosphor DBus Interfaces" |
| DESCRIPTION = "Generated bindings, using sdbus++, for the phosphor YAML" |
| LICENSE = "Apache-2.0" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
| DEPENDS += " \ |
| ${PYTHON_PN}-sdbus++-native \ |
| sdbusplus \ |
| systemd \ |
| " |
| SRCREV = "0be76aeee7e5c7d8235ea830049aa99fd9bf731c" |
| PV = "1.0+git${SRCPV}" |
| PR = "r1" |
| |
| SRC_URI = "git://github.com/openbmc/phosphor-dbus-interfaces;branch=master;protocol=https" |
| |
| inherit pkgconfig meson |
| inherit obmc-phosphor-utils |
| inherit phosphor-dbus-yaml |
| inherit python3native |
| |
| # Markdown files are installed into /usr/share/phosphor-dbus-interfaces so |
| # add them to the 'doc' subpackage. |
| FILES:${PN}-doc += "${datadir}/${BPN}" |
| |
| # Create separate packages for Redfish registry. |
| PACKAGES:append = " ${PN}-redfish-registry" |
| FILES:${PN}-redfish-registry += "${datadir}/redfish-registry/${BPN}" |
| |
| # Process OBMC_ORG_YAML_SUBDIRS to create Meson config options. |
| # ex. xyz/openbmc_project -> -Ddata_xyz_openbmc_project=true |
| def pdi_meson_config(d): |
| return ' '.join([ |
| '-Ddata_' + x.replace('/', '_') + '=true' \ |
| for x in listvar_to_list(d, 'OBMC_ORG_YAML_SUBDIRS') |
| ]) |
| pdi_meson_config[vardeps] = "OBMC_ORG_YAML_SUBDIRS" |
| EXTRA_OEMESON += "${@pdi_meson_config(d)}" |
| # Remove all schemas by default regardless of the meson.options config |
| do_write_config:append() { |
| for intf in $(grep "^option('data_" ${S}/meson.options | sed "s,^.*\(data_[^']*\).*$,\1,"); do |
| sed -i "/^\[built-in options\]\$/a$intf = false" ${WORKDIR}/meson.cross |
| done |
| } |
| |
| # The write-config needs to happen after the unpack and patch steps. |
| # Unpack is what creates the original source. Someone could apply patches to |
| # the repository that affects meson.options. |
| addtask write_config after do_unpack do_patch before do_configure |