From c479c026f1e73817004e43592842f5d256fa1f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Kongstad?= Date: Thu, 21 Dec 2023 16:49:11 +0100 Subject: [PATCH] Change `aconfig dump` to `aconfig dump-cache` Update the calls to dump aconfig caches; the new canonical name is `dump-cache`, though `dump` is still an accepted alias (for now). Bug: N/A Test: m all_aconfig_declarations && printflags Change-Id: I9f82d31666ced6bbd0f195f1422590547114e0f0 --- aconfig/init.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aconfig/init.go b/aconfig/init.go index be6de2746..3e9d29760 100644 --- a/aconfig/init.go +++ b/aconfig/init.go @@ -43,7 +43,7 @@ var ( // For create-device-config-sysprops: Generate aconfig flag value map text file aconfigTextRule = pctx.AndroidStaticRule("aconfig_text", blueprint.RuleParams{ - Command: `${aconfig} dump --format='{fully_qualified_name}={state:bool}'` + + Command: `${aconfig} dump-cache --format='{fully_qualified_name}={state:bool}'` + ` --cache ${in}` + ` --out ${out}.tmp` + ` && ( if cmp -s ${out}.tmp ${out} ; then rm ${out}.tmp ; else mv ${out}.tmp ${out} ; fi )`, @@ -56,7 +56,7 @@ var ( // For all_aconfig_declarations: Combine all parsed_flags proto files AllDeclarationsRule = pctx.AndroidStaticRule("All_aconfig_declarations_dump", blueprint.RuleParams{ - Command: `${aconfig} dump --format protobuf --out ${out} ${cache_files}`, + Command: `${aconfig} dump-cache --format protobuf --out ${out} ${cache_files}`, CommandDeps: []string{ "${aconfig}", }, @@ -73,7 +73,7 @@ var ( blueprint.RuleParams{ Command: `rm -rf ${out}.tmp` + `&& for cache in ${cache_files}; do ` + - ` if [ -n "$$(${aconfig} dump --cache $$cache --filter=is_exported:true --format='{fully_qualified_name}')" ]; then ` + + ` if [ -n "$$(${aconfig} dump-cache --cache $$cache --filter=is_exported:true --format='{fully_qualified_name}')" ]; then ` + ` ${aconfig} create-java-lib --cache $$cache --mode=exported --out ${out}.tmp; ` + ` fi ` + `done` +