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:
parent
68e72db131
commit
29453cb42e
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue