Complete definition for CompatibilityMatrix
* Add KernelConfigTypedValue to CompatibilityMatrix
to support KV pair in kernel information. config items
in /proc/config.gz are more than just a string; they have
the format:
CONFIG_FOO=y
CONFIG_BAR=""
CONFIG_BAZ=0x99
etc. Compatibility matrix needs to match the value part
as well.
* Added minlts to each kernel entry. This allows
KernelInfo::checkCompatibility to check if the current
LTS version can support the framework.
Test: libvintf_test
Change-Id: I859829dee8fdee0d856c33c1f5836d8c9c94099a
diff --git a/MatrixKernel.cpp b/MatrixKernel.cpp
index 6ddc657..828eb0a 100644
--- a/MatrixKernel.cpp
+++ b/MatrixKernel.cpp
@@ -20,9 +20,9 @@
namespace vintf {
bool MatrixKernel::operator==(const MatrixKernel &other) const {
- if (version != other.version)
+ if (mMinLts != other.mMinLts)
return false;
- if (configs != other.configs)
+ if (mConfigs != other.mConfigs)
return false;
return true;
}