Merge "Replace aconfig dump --format=bool with explicit format string" into main

This commit is contained in:
Mårten Kongstad 2023-12-21 07:03:38 +00:00 committed by Gerrit Code Review
commit 26d2c67339

View file

@ -43,7 +43,7 @@ var (
// For create-device-config-sysprops: Generate aconfig flag value map text file // For create-device-config-sysprops: Generate aconfig flag value map text file
aconfigTextRule = pctx.AndroidStaticRule("aconfig_text", aconfigTextRule = pctx.AndroidStaticRule("aconfig_text",
blueprint.RuleParams{ blueprint.RuleParams{
Command: `${aconfig} dump --format bool` + Command: `${aconfig} dump --format='{fully_qualified_name}={state:bool}'` +
` --cache ${in}` + ` --cache ${in}` +
` --out ${out}.tmp` + ` --out ${out}.tmp` +
` && ( if cmp -s ${out}.tmp ${out} ; then rm ${out}.tmp ; else mv ${out}.tmp ${out} ; fi )`, ` && ( if cmp -s ${out}.tmp ${out} ; then rm ${out}.tmp ; else mv ${out}.tmp ${out} ; fi )`,