commit | 01857a3d4de9d7f4b0b3befbc123c7d9f1575d83 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed Jan 03 10:15:01 2018 -0800 |
committer | Steven Moreland <smoreland@google.com> | Wed Jan 03 10:20:17 2018 -0800 |
tree | f5c8d3c8584f26eb2556c72483ba2e7a7d1850e1 | |
parent | 3aa0d7114239effdb03abe4dc43c9b3e64564dd4 [diff] |
Show better error for invalid fqName in import. When a name like "@1.0:IVendor" instead of "@1.0::IVendor" was used in an import (or any other mistake), this would cause a sigabort and provide no useful information. Now there is useful information. Test: manual Bug: raised over email Change-Id: I23c5951df28da41af25b1b6dfa56dfa13e464ff7
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