From f500075648f23166a102efa582a098f7ca18a720 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Tue, 21 Dec 2021 19:52:36 -0800 Subject: [PATCH] generate: Fix feedback loop in override resolution --- src/frontend/generate.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/generate.ts b/src/frontend/generate.ts index c7b6431..893a8f5 100644 --- a/src/frontend/generate.ts +++ b/src/frontend/generate.ts @@ -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