Add overlay logic to Entity Manager
Generate overlays and fixup symbols to map virtual i2c
busses to muxes. Also scan muxes in order as they seem
to get confused if we scan them out of order.
Change-Id: Iec3ed49fca22db8537e4474d9d95cab2da574aef
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/Utils.cpp b/src/Utils.cpp
index e63861e..b5c3787 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -33,14 +33,13 @@
for (auto &p : fs::recursive_directory_iterator(dir_path))
{
std::string path = p.path().string();
- if (!is_directory(p))
+ if (std::regex_search(path, match, search))
{
- if (std::regex_search(path, match, search))
- found_paths.emplace_back(p.path());
+ found_paths.emplace_back(p.path());
}
// since we're using a recursve iterator, these should only be symlink
// dirs
- else if (symlink_depth)
+ else if (is_directory(p) && symlink_depth)
{
find_files(p.path(), match_string, found_paths, symlink_depth - 1);
}