openpower: occ: Update recipe for meson build
Adjust various parameters to build the repository with meson.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Change-Id: I27e0fe96efec83646ee8aa8328dd32755d3816ad
diff --git a/meta-openpower/recipes-phosphor/occ/openpower-occ-control_git.bb b/meta-openpower/recipes-phosphor/occ/openpower-occ-control_git.bb
index 4408291..b78b85b 100644
--- a/meta-openpower/recipes-phosphor/occ/openpower-occ-control_git.bb
+++ b/meta-openpower/recipes-phosphor/occ/openpower-occ-control_git.bb
@@ -4,7 +4,7 @@
PR = "r1"
PV = "1.0+git${SRCPV}"
-inherit autotools \
+inherit meson \
pkgconfig \
obmc-phosphor-dbus-service \
python3native \
@@ -39,11 +39,11 @@
RDEPENDS:${PN} += "phosphor-state-manager-obmc-targets"
-EXTRA_OECONF = " \
- YAML_PATH=${STAGING_DATADIR_NATIVE}/${PN} \
- PS_DERATING_FACTOR=${POWER_SUPPLY_DERATING_FACTOR} \
+EXTRA_OEMESON = " \
+ -Dyamldir=${STAGING_DATADIR_NATIVE}/${PN} \
+ -Dps-derating-factor=${POWER_SUPPLY_DERATING_FACTOR} \
"
-EXTRA_OECONF:append = "${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'i2c-occ', ' --enable-i2c-occ', '', d)}"
+EXTRA_OEMESON:append = "${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'i2c-occ', ' -Di2c-occ=enabled', '', d)}"
OCC_ENABLE = "enable"
OCC_DISABLE = "disable"
@@ -91,8 +91,8 @@
# Provide a means to enable/disable install_error_yaml feature
PACKAGECONFIG ??= "install_error_yaml"
PACKAGECONFIG[install_error_yaml] = "\
- --enable-install_error_yaml,\
- --disable-install_error_yaml,\
+ -Dinstall-error-yaml=enabled,\
+ -Dinstall-error-yaml=disabled,\
,\
"