commit | fbcdc80e6451c24545cf0a5841d0c40cca58f42c | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed Feb 22 18:12:48 2017 -0800 |
committer | Yifan Hong <elsk@google.com> | Thu Feb 23 11:17:22 2017 -0800 |
tree | a4a192dde85b865c18115a85d3e0f9952699443a | |
parent | a3e8b239a43da534038ae4f4c350d3940713ee4c [diff] |
Use interfaceDescriptor instead of interfaceChain wherever suits. Sementically, interfaceDescriptor returns the first element of interfaceChain; use interfaceDescriptor when the rest of the elements aren't used. Bug: 34136228 Test: hidl_test Change-Id: Ie3332c168a792ab018d9b762f9bf6c15ddcbf998
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