diff options
author | Matt Spinler <spinler@us.ibm.com> | 2022-08-13 00:44:17 +0300 |
---|---|---|
committer | Matt Spinler <spinler@us.ibm.com> | 2022-08-19 18:51:38 +0300 |
commit | cb26287486d7d34acbe272804381a9bc3351c8a6 (patch) | |
tree | e02061bd106a692a0529f50634cde47404f045a1 /meta-phosphor | |
parent | a320910c6458a849139befbee636cd1405d7daae (diff) | |
download | openbmc-cb26287486d7d34acbe272804381a9bc3351c8a6.tar.xz |
phosphor-fan: Build with meson
The phosphor-fan-presence repository added meson support, so start using
it.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: If850d3d379ad82dc8f9691efd7a0561f350543dc
Diffstat (limited to 'meta-phosphor')
-rw-r--r-- | meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb b/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb index cc3d64f27f..da2d6954f6 100644 --- a/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb +++ b/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb @@ -5,15 +5,13 @@ PR = "r1" PV = "1.0+git${SRCPV}" require ${BPN}.inc - -inherit autotools pkgconfig python3native +inherit meson pkgconfig python3native inherit obmc-phosphor-systemd inherit phosphor-fan S = "${WORKDIR}/git" # Common build dependencies -DEPENDS += "autoconf-archive-native" DEPENDS += "${PYTHON_PN}-pyyaml-native" DEPENDS += "${PYTHON_PN}-mako-native" DEPENDS += "sdbusplus" @@ -37,18 +35,19 @@ ALLOW_EMPTY:${PN} = "1" PACKAGE_BEFORE_PN += "${FAN_PACKAGES}" PACKAGECONFIG ?= "presence control monitor sensor-monitor" SYSTEMD_PACKAGES = "${FAN_PACKAGES}" +EXTRA_OEMESON:append = " -Dtests=disabled" PKG_DEFAULT_MACHINE ??= "${MACHINE}" PACKAGE_ARCH = "${MACHINE_ARCH}" # The control, monitor, and presence apps can either be JSON or YAML driven. -PACKAGECONFIG[json] = "--enable-json, --disable-json" +PACKAGECONFIG[json] = "-Djson-config=enabled, -Djson-config=disabled" # -------------------------------------- # ${PN}-presence-tach specific configuration -PACKAGECONFIG[presence] = "--enable-presence \ - MACHINE=${PKG_DEFAULT_MACHINE} \ - PRESENCE_CONFIG=${STAGING_DIR_HOST}${presence_datadir}/config.yaml, \ - --disable-presence, \ +PACKAGECONFIG[presence] = "-Dpresence-service=enabled \ + -Dmachine-name=${PKG_DEFAULT_MACHINE} \ + -Dpresence-config=${STAGING_DIR_HOST}${presence_datadir}/config.yaml, \ + -Dpresence-service=disabled, \ virtual/phosphor-fan-presence-config \ , \ " @@ -74,13 +73,13 @@ FILES:${PN}-presence-tach += "${@bb.utils.contains('PACKAGECONFIG', 'json', \ # -------------------------------------- # ${PN}-control specific configuration -PACKAGECONFIG[control] = "--enable-control \ - MACHINE=${PKG_DEFAULT_MACHINE} \ - FAN_DEF_YAML_FILE=${STAGING_DIR_HOST}${control_datadir}/fans.yaml \ - FAN_ZONE_YAML_FILE=${STAGING_DIR_HOST}${control_datadir}/zones.yaml \ - ZONE_EVENTS_YAML_FILE=${STAGING_DIR_HOST}${control_datadir}/events.yaml \ - ZONE_CONDITIONS_YAML_FILE=${STAGING_DIR_HOST}${control_datadir}/zone_conditions.yaml, \ - --disable-control, \ +PACKAGECONFIG[control] = "-Dcontrol-service=enabled \ + -Dmachine-name=${PKG_DEFAULT_MACHINE} \ + -Dfan-def-yaml-file=${STAGING_DIR_HOST}${control_datadir}/fans.yaml \ + -Dfan-zone-yaml-file=${STAGING_DIR_HOST}${control_datadir}/zones.yaml \ + -Dzone-events-yaml-file=${STAGING_DIR_HOST}${control_datadir}/events.yaml \ + -Dzone-conditions-yaml-file=${STAGING_DIR_HOST}${control_datadir}/zone_conditions.yaml, \ + -Dcontrol-service=disabled, \ virtual/phosphor-fan-control-fan-config \ phosphor-fan-control-zone-config \ phosphor-fan-control-events-config \ @@ -120,10 +119,10 @@ FILES:${PN}-control += "${@bb.utils.contains('PACKAGECONFIG', 'json', \ # -------------------------------------- # ${PN}-monitor specific configuration -PACKAGECONFIG[monitor] = "--enable-monitor \ - MACHINE=${PKG_DEFAULT_MACHINE} \ - FAN_MONITOR_YAML_FILE=${STAGING_DIR_HOST}${monitor_datadir}/monitor.yaml, \ - --disable-monitor, \ +PACKAGECONFIG[monitor] = "-Dmonitor-service=enabled \ + -Dmachine-name=${PKG_DEFAULT_MACHINE} \ + -Dfan-monitor-yaml-file=${STAGING_DIR_HOST}${monitor_datadir}/monitor.yaml, \ + -Dmonitor-service=disabled, \ phosphor-fan-monitor-config \ , \ " @@ -157,11 +156,10 @@ FILES:${PN}-monitor += "${@bb.utils.contains('PACKAGECONFIG', 'json', \ # -------------------------------------- # phosphor-cooling-type specific configuration -PACKAGECONFIG[cooling-type] = "--enable-cooling-type,--disable-cooling-type,," - +PACKAGECONFIG[cooling-type] = "-Dcooling-type-service=enabled,-Dcooling-type-service=disabled,," # -------------------------------------- # ${PN}-sensor-monitor specific configuration -PACKAGECONFIG[sensor-monitor] = "--enable-sensor-monitor, --disable-sensor-monitor" +PACKAGECONFIG[sensor-monitor] = "-Dsensor-monitor-service=enabled,-Dsensor-monitor-service=disabled" FAN_PACKAGES:append = "${@bb.utils.contains('PACKAGECONFIG', 'sensor-monitor', ' sensor-monitor', '', d)}" |