Migrate dump_power.sh contents into cpp for improved speed

Bug: 271355543
Test: adb bugreport and check dumpstate_board.txt
Change-Id: Ic4e7c1a8198aedc3d2f5b3880ce60aa45843ec2d
This commit is contained in:
Hiroshi Akiyama 2023-05-22 17:35:45 +00:00
parent 68068a806f
commit 5aded2ebfe
4 changed files with 887 additions and 426 deletions

View file

@ -9,11 +9,21 @@ sh_binary {
sub_dir: "dump",
}
sh_binary {
name: "dump_power.sh",
src: "dump_power.sh",
cc_binary {
name: "dump_power",
srcs: ["dump_power.cpp"],
cflags: [
"-Wall",
"-Wextra",
"-Werror",
],
shared_libs: [
"libbase",
"libdump",
"libdumpstateutil",
],
vendor: true,
sub_dir: "dump",
relative_install_path: "dump",
}
sh_binary {