commit | ae028317cb1db937eeb72063fcdc48ebb0f4afbd | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Apr 18 22:31:50 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Wed Apr 19 09:49:50 2017 -0700 |
tree | e1266fa3ff7c79de878a998b1f341f8954132996 | |
parent | ad425622cbf8ba7d337cd706094da56e50208712 [diff] |
Add check for hidl package root hash. When compiling a module, say foo.bar.baz@1.0::IBaz, assume the package root is foo.bar:some/dir/interfaces, then: - look at the file some/dir/interfaces/current.txt - read hash from file corresponding from foo.bar.baz@1.0::IBaz - file supports same-line comments with '#' - format of file is each line is blank or looks like: "<sha-256 hash> <fqName>" - if the file is misformed or the hal does not match a sha in that file, then it is considered build breakage. Test: build with and without changing frozen files Bug: 34178341 Change-Id: Ieddbc796ea974ac7c2e8b95ca69009c31e0cfb60
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