bugfix: generatePrep() didn't clear extra_product_makefiles

generatePrep() is called from the `collect-state --rebuild` command, which uses a different
codepath than the `generate-prep` command.
This commit is contained in:
Dmitry Muhomor 2023-12-07 03:40:13 +02:00 committed by Daniel Micay
parent 68e72db131
commit 29453cb42e

View file

@ -30,6 +30,10 @@ const doDevice = (
useTemp: boolean,
) =>
withTempDir(async tmp => {
// these makefiles are expected to reference proprietary files that are
// inaccessible during state collection build
config.platform.extra_product_makefiles = []
// Prepare stock system source
let wrapBuildId = buildId == undefined ? null : buildId
let wrapped = await withSpinner('Extracting stock system source', spinner =>
@ -127,10 +131,6 @@ export default class GeneratePrep extends Command {
buildId = flags.buildId
}
// these makefiles are expected to reference proprietary files that are
// inaccessible during state collection build
config.platform.extra_product_makefiles = []
await doDevice(config, stockSrc, buildId, flags.skipCopy, flags.useTemp)
},
config => config.device.name,