commit | 964f72f0004492590d3d1cd048d180a79a20dbc8 | [log] [tgz] |
---|---|---|
author | Zhuoyao Zhang <zhuoyao@google.com> | Fri Oct 21 11:12:03 2016 -0700 |
committer | Zhuoyao Zhang <zhuoyao@google.com> | Mon Oct 24 13:10:32 2016 -0700 |
tree | 1b5cc6824462708db43df7405c2eb8a314149c02 | |
parent | aeb6484801fc4d4a81c7432b73349fcab459e9e1 [diff] |
Cleanup hidl-gen to use HidlInstrumentor. * Create BpFoo/BnFoo to inherit HidlInstrumentor. * Remove the declaration/initialization of instrumentation related variable from BnFoo/BnFoo * Rename args to _hidl_args to avoid name confilict. Merged-In: If1a1c9e29ca60a42300c88df6bf196ba453f9bce Bug: 32141398 Test: make android.hardware.nfc@1.0 Change-Id: If1a1c9e29ca60a42300c88df6bf196ba453f9bce
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: hidl-gen -o output -L c++ android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:/home/android/master/hardware/interfaces android.hardware.nfc@1.0