Patrick Williams | 1e5b4ec | 2017-01-30 11:05:56 -0600 | [diff] [blame] | 1 | SUMMARY = "Phosphor DBus Interfaces" |
| 2 | DESCRIPTION = "Generated bindings, using sdbus++, for the phosphor YAML" |
Brad Bishop | 75f0387 | 2018-11-03 09:41:57 -0700 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 5 | DEPENDS += " \ |
| 6 | ${PYTHON_PN}-sdbus++-native \ |
| 7 | sdbusplus \ |
| 8 | systemd \ |
| 9 | " |
Andrew Geissler | 91479e7 | 2023-01-09 15:20:36 -0600 | [diff] [blame] | 10 | SRCREV = "85d0c9027f589ec11659259fb94c35dec199336f" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 11 | PV = "1.0+git${SRCPV}" |
| 12 | PR = "r1" |
| 13 | |
| 14 | SRC_URI = "git://github.com/openbmc/phosphor-dbus-interfaces;branch=master;protocol=https" |
| 15 | |
| 16 | S = "${WORKDIR}/git" |
Patrick Williams | 1e5b4ec | 2017-01-30 11:05:56 -0600 | [diff] [blame] | 17 | |
Andrew Geissler | ec34cc6 | 2021-11-03 09:57:52 -0500 | [diff] [blame] | 18 | inherit pkgconfig meson |
Patrick Williams | 56d3704 | 2020-09-08 16:51:14 -0500 | [diff] [blame] | 19 | inherit obmc-phosphor-utils |
Marri Devender Rao | 8dd7798 | 2017-05-29 01:33:26 -0500 | [diff] [blame] | 20 | inherit phosphor-dbus-yaml |
Patrick Williams | 56d3704 | 2020-09-08 16:51:14 -0500 | [diff] [blame] | 21 | inherit python3native |
Patrick Williams | 1e5b4ec | 2017-01-30 11:05:56 -0600 | [diff] [blame] | 22 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 23 | # Markdown files are installed into /usr/share/phosphor-dbus-interfaces so |
| 24 | # add them to the 'doc' subpackage. |
| 25 | FILES:${PN}-doc += "${datadir}/${BPN}" |
Patrick Williams | 56d3704 | 2020-09-08 16:51:14 -0500 | [diff] [blame] | 26 | |
| 27 | # Process OBMC_ORG_YAML_SUBDIRS to create Meson config options. |
| 28 | # ex. xyz/openbmc_project -> -Ddata_xyz_openbmc_project=true |
| 29 | def pdi_meson_config(d): |
| 30 | return ' '.join([ |
| 31 | '-Ddata_' + x.replace('/', '_') + '=true' \ |
| 32 | for x in listvar_to_list(d, 'OBMC_ORG_YAML_SUBDIRS') |
| 33 | ]) |
Patrick Williams | bec9f78 | 2020-09-15 10:33:02 -0500 | [diff] [blame] | 34 | pdi_meson_config[vardeps] = "OBMC_ORG_YAML_SUBDIRS" |
William A. Kennington III | 9f8cb03 | 2022-03-07 16:51:43 -0800 | [diff] [blame] | 35 | EXTRA_OEMESON += "${@pdi_meson_config(d)}" |
William A. Kennington III | 9f8cb03 | 2022-03-07 16:51:43 -0800 | [diff] [blame] | 36 | # Remove all schemas by default regardless of the meson_options.txt config |
| 37 | do_write_config:append() { |
| 38 | for intf in $(grep "^option('data_" ${S}/meson_options.txt | sed "s,^.*\(data_[^']*\).*$,\1,"); do |
| 39 | sed -i "/^\[built-in options\]\$/a$intf = false" ${WORKDIR}/meson.cross |
| 40 | done |
| 41 | } |