generate: Fix feedback loop in override resolution

This commit is contained in:
Danny Lin 2021-12-21 19:52:36 -08:00
parent 830d5e939e
commit f500075648

View file

@ -89,6 +89,9 @@ export async function resolveOverrides(
) {
let targetPrefix = `out/target/product/${config.device.name}/`
let targetPaths = Array.from(namedEntries.keys())
// Never use existing modules for dep files (e.g. generated in prep) to avoid feedback loop
.filter(p => !filterValue(config.filters.dep_files, p))
// Convert to installed paths
.map(cPartPath => `${targetPrefix}${cPartPath}`)
let modulesMap = customState.moduleInfo