Merge changes from topic "list_releases" into main

* changes:
  Add list_releases command
  Add standalone list_products and list_variants commands.
This commit is contained in:
Joe Onorato
2024-05-31 20:22:06 +00:00
committed by Gerrit Code Review
4 changed files with 99 additions and 2 deletions

View File

@@ -454,8 +454,8 @@ func (configs *ReleaseConfigs) WriteMakefile(outFile, targetRelease string) erro
if targetRelease != config.Name {
data += fmt.Sprintf("# User specified TARGET_RELEASE=%s\n", targetRelease)
}
// The variable _all_release_configs will get deleted during processing, so do not mark it read-only.
data += fmt.Sprintf("_all_release_configs := %s\n", strings.Join(configs.GetAllReleaseNames(), " "))
// As it stands this list is not per-product, but conceptually it is, and will be.
data += fmt.Sprintf("ALL_RELEASE_CONFIGS_FOR_PRODUCT :=$= %s\n", strings.Join(configs.GetAllReleaseNames(), " "))
data += fmt.Sprintf("_used_files := %s\n", strings.Join(config.GetSortedFileList(), " "))
data += fmt.Sprintf("_ALL_RELEASE_FLAGS :=$= %s\n", strings.Join(names, " "))
for _, pName := range pNames {