From 35d14a7a2db243a050f4c6b7f46bc6183180faa7 Mon Sep 17 00:00:00 2001 From: Dmitry Muhomor Date: Fri, 6 Oct 2023 16:34:42 +0300 Subject: [PATCH] generate-prep: include cmds-for-envsetup.sh It's omission was a mistake. --- src/commands/generate-prep.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/commands/generate-prep.ts b/src/commands/generate-prep.ts index 5cdd696..a70ab98 100644 --- a/src/commands/generate-prep.ts +++ b/src/commands/generate-prep.ts @@ -6,7 +6,13 @@ import { copyBlobs } from '../blobs/copy' import { BlobEntry } from '../blobs/entry' import { DEVICE_CONFIG_FLAGS, DeviceBuildId, DeviceConfig, getDeviceBuildId, loadDeviceConfigs } from '../config/device' import { forEachDevice } from '../frontend/devices' -import { enumerateFiles, extractProps, generateBuildFiles, PropResults } from '../frontend/generate' +import { + enumerateFiles, + extractProps, + generateBuildFiles, + PropResults, + writeEnvsetupCommands, +} from '../frontend/generate' import { DeviceImages, prepareFactoryImages, WRAPPED_SOURCE_FLAGS, wrapSystemSrc } from '../frontend/source' import { loadBuildIndex } from '../images/build-index' import { withSpinner } from '../util/cli' @@ -63,6 +69,8 @@ const doDevice = ( await withSpinner('Generating build files', () => generateBuildFiles(config, dirs, entries, [], propResults, null, null, null, stockSrc, false, true), ) + + await writeEnvsetupCommands(config, dirs) }) export default class GeneratePrep extends Command {