Add a tool to list contents of .img file

list_image <img> lists the contents of the file.

For example:
  $ m microdroid
  $ list_image <path to microdroid.img>
  ./
  ./apex/
  ./bin
  ..

Bug: 195425111
Bug: 225121718
Test: list_image .img
Change-Id: I7c4fca184751ba20066fd25fa4c366a955dbabf6
This commit is contained in:
Jooyung Han
2022-03-25 02:18:18 +09:00
parent ad40fffa64
commit b3a3a2893b
2 changed files with 111 additions and 0 deletions

View File

@@ -188,3 +188,11 @@ python_binary_host {
"get_clang_version.py",
],
}
python_binary_host {
name: "list_image",
main: "list_image.py",
srcs: [
"list_image.py",
],
}