commit | 0184ce300b6d4d6d085e59d06891bbc2aa270d5a | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Fri May 26 14:39:38 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Tue May 30 14:54:18 2017 -0700 |
tree | 463b588fe9fca6ecc1acd1d6ccdf70077b2d7e30 | |
parent | fbb5a094d3f323b79c00a4025d2a2566d7fc405d [diff] |
Better error detection. Note, had to use ` instead of ' or " because otherwise bison adds unnecessary quotes in error messages. Example: ERROR: syntax error, unexpected keyword `import` ... ERROR: syntax error, unexpected type, expecting identifier at ... Test: manual Fixes: 62135419 Change-Id: I3ef1b2f660629a9a95286dcdbfa7be5aa7c9b387
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