commit | c59326ec5bcae86051571a0824e39e01fc2c4053 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Jun 20 15:19:30 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Wed Jun 21 15:45:42 2017 +0000 |
tree | cfdfd04cc86a29a5b3ae1cc91c9cc966acb536df | |
parent | 2ce36b6f0520fcba8fc95acc9cea20249b2bf84c [diff] |
Don't check hash while generating hash. A common usecase of -Lhash is to add a new hash to a current.txt file. However, doing so requires removing old hashes which then must be re-added for correctness. This is because hashes of released interfaces should never be removed. Here I've made it so that -Lhash will return a hash for valid interfaces even if the hash fails. I've also added this to hidl_hash_test. Test: hidl_hash_test Bug: 62858322 Change-Id: I840086ae59656c73c7109b20c142da27b47f80f8
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