From 9742a2a6fa4417c19ea7497396eb775aa9cfd673 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Thu, 16 Dec 2021 19:43:52 -0800 Subject: [PATCH] generate: Document all possible stockSrc values --- src/commands/generate-all.ts | 2 +- src/commands/generate-prep.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/generate-all.ts b/src/commands/generate-all.ts index c5272aa..9abf22f 100644 --- a/src/commands/generate-all.ts +++ b/src/commands/generate-all.ts @@ -19,7 +19,7 @@ export default class GenerateFull extends Command { help: flags.help({char: 'h'}), aapt2: flags.string({char: 'a', description: 'path to aapt2 executable', default: 'out/host/linux-x86/bin/aapt2'}), buildId: flags.string({char: 'b', description: 'build ID of the stock images'}), - stockSrc: flags.string({char: 's', description: 'path to (extracted) factory images, (mounted) images, or directory containing any such files (optionally under device and/or build ID directory)', required: true}), + stockSrc: flags.string({char: 's', description: 'path to (extracted) factory images, (mounted) images, (extracted) OTA package, OTA payload, or directory containing any such files (optionally under device and/or build ID directory)', required: true}), customSrc: flags.string({char: 'c', description: 'path to AOSP build output directory (out/) or JSON state file', default: 'out'}), factoryZip: flags.string({char: 'f', description: 'path to stock factory images zip (for extracting firmware if stockSrc is not factory images)'}), skipCopy: flags.boolean({char: 'k', description: 'skip file copying and only generate build files'}), diff --git a/src/commands/generate-prep.ts b/src/commands/generate-prep.ts index 8ee7908..9cf4cf6 100644 --- a/src/commands/generate-prep.ts +++ b/src/commands/generate-prep.ts @@ -15,7 +15,7 @@ export default class GeneratePrep extends Command { static flags = { help: flags.help({char: 'h'}), buildId: flags.string({char: 'b', description: 'build ID of the stock images'}), - stockSrc: flags.string({char: 's', description: 'path to root of mounted stock system images (./system_ext, ./product, etc.)', required: true}), + stockSrc: flags.string({char: 's', description: 'path to (extracted) factory images, (mounted) images, (extracted) OTA package, OTA payload, or directory containing any such files (optionally under device and/or build ID directory)', required: true}), skipCopy: flags.boolean({char: 'k', description: 'skip file copying and only generate build files'}), }