commit | 30f6b494bbd4663a4b107e038b9884cdf23bf715 | [log] [tgz] |
---|---|---|
author | Howard Chen <howardsoc@google.com> | Thu Aug 24 16:50:12 2017 +0800 |
committer | Howard Chen <howardsoc@google.com> | Tue Aug 29 11:01:44 2017 +0800 |
tree | bbc420106636bcaf01dd1e4e7d536e6b5922743a | |
parent | 33431e6cd425c6cd179080442a8616e2baa20aae [diff] |
Refine the -o option when -Lmakefile & -Landroidbp The commands below $>mkdir tmp $>hidl-gen -o tmp -Landroidbp \ -randroid.hardware:hardware/interfaces \ -randroid.hidl:system/libhidl/transport \ android.hardware.tests.libhwbinder@1.0 geneates files to a ./tmphardware directory instead of ./tmp/hardware. Refine this and generate files under the specified directory. Test: Pixel phone Bug: 65036223 Change-Id: Ibf620414acc95367d259994ee140099180a3fa54
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 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0