commit | 7a36804ac23457a93dab8c83d020a34c2a2c7195 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Mon Aug 28 12:47:24 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Mon Aug 28 12:49:36 2017 -0700 |
tree | 10fd19d7c21b8c057ddd01a1191738df486f8ce5 | |
parent | 33431e6cd425c6cd179080442a8616e2baa20aae [diff] |
Use absolute path for current.txt files. This fixes a problem where current.txt files cannot be found unless hidl-gen is run from $ANDROID_BUILD_TOP. Now, in addition to the build system, people running hidl-gen from any location in the source tree will experience a consistent versioning verification. Test: hidl-gen -Lcheck from multiple directories both before and after modifying a frozen interface produces the desired result. Fixes: 65118034 Change-Id: Id31ab67b9ad18bff6f9845492ab91a8f26cb308d
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