commit | f619fc7bef5a4af1c196e125d70293d4af85e396 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Fri Apr 07 15:40:06 2017 -0700 |
committer | Yifan Hong <elsk@google.com> | Mon Apr 10 20:20:25 2017 +0000 |
tree | 7021df870559abe7ee9ca1830a6c81848dd2f44f | |
parent | 9c74a5b76b0c3672ac640fc0750ccbd2b39943a1 [diff] |
Do not enforce minor version uprev on imports. For example, if A imports B and we run hidl-gen on A, we should not check minor version uprev requirement on B; this is an overkill. Eventually, hidl-gen needs to be run on B to generate the required sources, then we can enforce the restrictions there. This CL is needed because enforceRestrictionsOnPackage internally calls parse, and the recursion should not go on forever. Stopping at imports are a good base case for the recursion. Test: pass Test: hardware/interfaces/update-makefiles.sh Test: ./system/tools/hidl/test/test.sh Test: hidl-gen -o /tmp -Ljava -randroid.hardware:hardware/interfaces -rtests:system/tools/hidl/test -randroid.hidl:system/libhidl/transport android.hardware.usb@1.1::IUsbCallback Bug: 36787547 Change-Id: Id4363a42d6ba8c9b747c7430c79348552cc8139d Merged-In: Id4363a42d6ba8c9b747c7430c79348552cc8139d
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