commit | 9c8b4897e3e7dcf0e8101456da438fd3a00bfaeb | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed Sep 20 15:33:33 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Thu Sep 21 15:49:04 2017 -0700 |
tree | b3f76116d50ebce12c71ef293c4e706d8138fb37 | |
parent | 53b9bfb42a5f1426c5eb21234d2b4d2a4ad0222c [diff] |
Add support for relative package paths. Because of the ':', bash doesn't expand paths before handing them to hidl-gen. Test: from system/tools/hidl, hidl-gen -Lcheck -r tests:./test/ tests.vendor@1.0 Test: from system/tools/hidl/test, hidl-gen -Lcheck -r tests:. tests.vendor@1.0 Test: run_all_host_tests.sh Change-Id: I9f1cac82a3a10930684a993381a8860e93f5140f Fixes: 65845256
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