Allow multiple DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILEs.
Test: multiple DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE is specified, and built
Bug: 68291320
Change-Id: I60358a8b678bc43ced4eec15505c09b245c9764a
diff --git a/CompatibilityMatrix.cpp b/CompatibilityMatrix.cpp
index 97f8977..8f6a7a8 100644
--- a/CompatibilityMatrix.cpp
+++ b/CompatibilityMatrix.cpp
@@ -294,7 +294,7 @@
std::string* error) {
std::map<Level, const std::string*> existingLevels;
for (const auto& e : matrices) {
- if (e.object.level() == Level::UNSPECIFIED &&
+ if (e.object.level() != Level::UNSPECIFIED &&
existingLevels.find(e.object.level()) != existingLevels.end()) {
if (error) {
*error = "Conflict of levels: file \"" +