commit | a6239b3694b195617468f88b4553499e60cda80a | [log] [tgz] |
---|---|---|
author | Zhuoyao Zhang <zhuoyao@google.com> | Wed Jan 11 12:48:58 2017 -0800 |
committer | Zhuoyao Zhang <zhuoyao@google.com> | Wed Jan 11 12:48:58 2017 -0800 |
tree | 786a0eb526b68c191b362af4a5d3a1002b426dab | |
parent | dfb73b4e0651e8f554aba73be9461b1821c49fac [diff] |
Fix vts generation in hidl. * Needs to generate the imported attributes (from types.hal in a different package) within an interface. Test: make hidl-gen mma for hardware/interfaces successfully build the driver/profiler for android.hardware.graphics.allocator@2.0 locally. Change-Id: I1c149d0fc76d9aaf662d8463a8bf485dc931e128
croot make hidl-gen
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