commit | 5d2142028ae97e2c7c537cc979fd69ec966c8194 | [log] [tgz] |
---|---|---|
author | Potin Lai <potin.lai@quantatw.com> | Mon Jan 16 18:11:49 2023 +0800 |
committer | PL <potin.lai@quantatw.com> | Thu Feb 23 03:52:01 2023 +0000 |
tree | 82a059dfc1c11a0aca52bc43bec3bc0760e6a235 | |
parent | c2cb1bc28a76cb7b1723add540b836667c5eedeb [diff] |
apphandler: use regex to parse firmware version 1. Use regular expression to parse firmware major & minor version. 2. Add meson option to modify regex string by platform layer. Tested result: - parsing result of version 1: v0.6-19-gf363f61-dirty rev.major = 0 rev.minor = 6 - parsing result of version 2: v1.99.10-113-g65edf7d-r3-0-g9e4f715 rev.major = 1 rev.minor = 99 - parsing result of version 3: 2.14.0-dev rev.major = 2 rev.minor = 14 Change-Id: I1a5ebd592e3078d38182926a6a9ee98a129c3ee4 Signed-off-by: Potin Lai <potin.lai@quantatw.com>
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