commit | 11317d75d4a6f38f998af7e6c612a99ad3eff12a | [log] [tgz] |
---|---|---|
author | Tim Lee <timlee660101@gmail.com> | Wed Jul 27 10:13:46 2022 +0800 |
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | Mon Aug 15 20:08:25 2022 +0000 |
tree | 955911307f8fa62423bff046b47ac9ff619ddbd3 | |
parent | 48fe64e92ce0ea218e6c628657e98b2c16fe8b46 [diff] |
dbus-sdr: fix build error when enable sel-logger-clears-sel Symptom: When enable -Dsel-logger-clears-sel=enabled with meson build. There is build error in function ipmiStorageClearSEL() as below: error: 'ctx' was not declared in this scope | ctx->bus->yield_method_call<>(ctx->yield, ec, selLoggerServiceName, error: expected primary-expression before '>' token | ctx->bus->yield_method_call<>(ctx->yield, ec, selLoggerServiceName, Root cause: There is no define "ctx" in ipmiStorageClearSEL() definition. ipmi::RspType<uint8_t> ipmiStorageClearSEL(ipmi::Context::ptr, Solution: Add define "ctx" for ipmi context pointer. ipmi::RspType<uint8_t> ipmiStorageClearSEL(ipmi::Context::ptr ctx, Verified: bitbake phosphor-ipmi-host and build pass without errors. Signed-off-by: Tim Lee <timlee660101@gmail.com> Change-Id: Id52aeb546c4c1f382873761e9ef9196ab8147dc7
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage