meta-phosphor: dump: Switched to meson build tool
The phosphor-debug-collector is now supporting meson build infrastructure
to build phosphor-debug-collector so, switching to meson build tool
instead using autotools for reducing the bmc build time.
phosphor-debug-collector meson build tool patch set:
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-debug-collector/+/35282
SRCREV bump: 9b841d...bb410d
Ramesh Iyyar (1):
build: Enabled meson build infrastructure
Tested:
- Image build:
- MACHINE=witherspoon DISTRO=openbmc-witherspoon \
TEMPLATECONF=meta-ibm/conf bitbake obmc-phosphor-image
- MACHINE=witherspoon-tacoma DISTRO=openbmc-witherspoon \
TEMPLATECONF=meta-ibm/conf bitbake obmc-phosphor-image
- SDK build:
- MACHINE=witherspoon DISTRO=openbmc-witherspoon \
TEMPLATECONF=meta-ibm/conf bitbake obmc-phosphor-image -c populate_sdk
- MACHINE=witherspoon-tacoma DISTRO=openbmc-witherspoon \
TEMPLATECONF=meta-ibm/conf bitbake obmc-phosphor-image -c populate_sdk
Signed-off-by: Ramesh Iyyar <rameshi1@in.ibm.com>
Change-Id: Ifb11031ceb4cc57bfe3ac17370acb747143fced7
diff --git a/recipes-phosphor/dump/phosphor-debug-collector_git.bb b/recipes-phosphor/dump/phosphor-debug-collector_git.bb
index 7f5f9e85..e99078d 100644
--- a/recipes-phosphor/dump/phosphor-debug-collector_git.bb
+++ b/recipes-phosphor/dump/phosphor-debug-collector_git.bb
@@ -20,8 +20,7 @@
SYSTEMD_PACKAGES = "${PN}-monitor"
-inherit autotools \
- pkgconfig \
+inherit meson \
obmc-phosphor-dbus-service \
python3native \
phosphor-debug-collector
@@ -70,9 +69,9 @@
DBUS_SERVICE_${PN}-manager += "${MGR_SVC}"
SYSTEMD_SERVICE_${PN}-monitor += "obmc-dump-monitor.service"
-EXTRA_OECONF = " \
- BMC_DUMP_PATH=${bmc_dump_path} \
- ERROR_MAP_YAML=${STAGING_DIR_NATIVE}/${datadir}/dump/errors_watch.yaml \
+EXTRA_OEMESON = " \
+ -DBMC_DUMP_PATH=${bmc_dump_path} \
+ -DERROR_MAP_YAML=${STAGING_DIR_NATIVE}/${datadir}/dump/errors_watch.yaml \
"
S = "${WORKDIR}/git"
@@ -178,12 +177,12 @@
#Enable ubifs-workaround by DISTRO_FEATURE obmc-ubi-fs.
PACKAGECONFIG_append_df-obmc-ubi-fs = " ubifs-workaround"
PACKAGECONFIG[ubifs-workaround] = " \
- --enable-ubifs-workaround, \
- --disable-ubifs-workaround \
+ -Dubifs-workaround=enabled, \
+ -Dubifs-workaround=disabled \
"
PACKAGECONFIG[host-dump-offload-pldm] = " \
- --with-host-dump-offload-transport=pldm,, \
+ -Dhost-dump-offload-transport=pldm,, \
pldm \
"