commit | a12df11cc1484009f1504e1e42253b40ac462783 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Thu Feb 15 14:32:46 2018 -0800 |
committer | Steven Moreland <smoreland@google.com> | Thu Feb 15 23:14:42 2018 +0000 |
tree | 9b4deb26508e57019614f1e2f89c616f1f4ad0c7 | |
parent | 081b1a116e3b10b6ea361d61cd8aae34d6167887 [diff] |
Better error messages for FQName argument. Bug: in person Test: manual using following commands $ hidl-gen -Lcheck android.hardware.nfc@1.0 $ hidl-gen -Lcheck android.hardware.nfc::1.0 ERROR: Invalid fully-qualified name as argument: android.hardware.nfc::1.0. $ hidl-gen -h usage: hidl-gen [-p <root path>] -o <output path> -L <language> [-O <owner>] (-r <interface root>)+ [-v] [-d <depfile>] FQNAME... Process FQNAME, PACKAGE(.SUBPACKAGE)+@[0-9]+.[0-9]+(::TYPE)?, to create output. ... Change-Id: I79dedd8526ced100ade11a24719e5862a1e8c2b7
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