commit | e34b9df23105943583c7954576b48695358ce090 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed Nov 29 14:40:50 2017 -0800 |
committer | Steven Moreland <smoreland@google.com> | Wed Nov 29 14:40:50 2017 -0800 |
tree | 6a75f6fbf6acffcfb0272a61dcd037ec520827d3 | |
parent | 10d1ec452ceb2159d8a66d60db60e371f17f939e [diff] |
Better error for hidl_package_root being missing. Provide instructions directly in the error message for how to fix this error since it is new and non-obvious, this is the best place to document the structure. Bug: several people have had problems with this Test: build both with and without triggering the error Change-Id: I3f4071689c434b26b28d429df6a72c6c4f056961
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