Zero hidl-generated structs

Bug: 131356202
Test: boot, lshal
Change-Id: I8fb10532b6fdf9afa419f19fc634981e7cbd3c10
Merged-In: I8fb10532b6fdf9afa419f19fc634981e7cbd3c10
(cherry picked from commit c0a87677e806ee54748dac040360332b84c494ba)
1 file changed
tree: 7cd8ec61a8df8a63ee1b7b25ea8276591ae07036
  1. build/
  2. c2hal/
  3. docs/
  4. include_hash/
  5. scripts/
  6. test/
  7. utils/
  8. .clang-format
  9. AST.cpp
  10. AST.h
  11. Android.bp
  12. Annotation.cpp
  13. Annotation.h
  14. ArrayType.cpp
  15. ArrayType.h
  16. CleanSpec.mk
  17. CompoundType.cpp
  18. CompoundType.h
  19. ConstantExpression.cpp
  20. ConstantExpression.h
  21. Coordinator.cpp
  22. Coordinator.h
  23. DeathRecipientType.cpp
  24. DeathRecipientType.h
  25. DocComment.cpp
  26. DocComment.h
  27. EnumType.cpp
  28. EnumType.h
  29. FmqType.cpp
  30. FmqType.h
  31. HandleType.cpp
  32. HandleType.h
  33. Hash.cpp
  34. HidlTypeAssertion.cpp
  35. HidlTypeAssertion.h
  36. Interface.cpp
  37. Interface.h
  38. Location.cpp
  39. Location.h
  40. MODULE_LICENSE_APACHE2
  41. MemoryType.cpp
  42. MemoryType.h
  43. Method.cpp
  44. Method.h
  45. NOTICE
  46. NamedType.cpp
  47. NamedType.h
  48. OWNERS
  49. PREUPLOAD.cfg
  50. PointerType.cpp
  51. PointerType.h
  52. README.md
  53. RefType.cpp
  54. RefType.h
  55. Reference.h
  56. ScalarType.cpp
  57. ScalarType.h
  58. Scope.cpp
  59. Scope.h
  60. StringType.cpp
  61. StringType.h
  62. Type.cpp
  63. Type.h
  64. TypeDef.cpp
  65. TypeDef.h
  66. VectorType.cpp
  67. VectorType.h
  68. generateCpp.cpp
  69. generateCppAdapter.cpp
  70. generateCppImpl.cpp
  71. generateJava.cpp
  72. generateVts.cpp
  73. hidl-gen_l.h
  74. hidl-gen_l.ll
  75. hidl-gen_y.yy
  76. main.cpp
  77. update-all-google-makefiles.sh
  78. update-makefiles-helper.sh
README.md

hidl-gen user guide

1. Build

croot
make hidl-gen

2. Run

hidl-gen -o output-path -L language (-r interface-root) fqname

output-path: directory to store the output files.
language: output file for given language. e.g.c++, vts..

fqname: fully qualified name of the input files.
For singe file input, follow the format: package@version::fileName
For directory input, follow the format: package@version

interface-root(optional): prefix and root path for fqname.
If not set, use the default prefix: android.hardware and default root path
defined in $TOP.

examples:

croot
hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal
hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0