commit | 7ede30443936c6a1d849ea6a5237f8cc3569ea92 | [log] [tgz] |
---|---|---|
author | Hans Chen <junyec@google.com> | Tue Jun 05 15:18:15 2018 -0700 |
committer | Hans Chen <junyec@google.com> | Tue Jun 12 15:13:46 2018 -0700 |
tree | d490c9be4216262bfcd756d9c10d0b3111f47bf7 | |
parent | e7cc03329dc5a9f4e1f36430062d8f6abf013918 [diff] |
Change the implementation to generate vts files Bug: 62878693 Test: make vts -j Changes: * When generating vts files, add two new fields (component_type_version_major and component_type_version_minor) * Fixed formatting issues while uploading * Patch: use existing util functions to retrieve major and minor versions in generateVts.cpp * Patch: Avoid generating float component_type_version in .vts files Change-Id: Ia3f405ee84292075c57c3500b49cb4a1d583afa3 Merged-In: Ia3f405ee84292075c57c3500b49cb4a1d583afa3
Full documentation can be found here: https://source.android.com/devices/architecture/hidl/
hidl-gen is a compiler for the HIDL (HAL Interface Design Language) which generates C++ and Java endpoints for RPC mechanisms. The main userspace libraries which this compiler uses can be found at system/libhidl.
m hidl-gen
Note that options for hidl-gen expected to be invoked by the build system are marked with ‘internal’ in the help menu.
hidl-gen -h hidl-gen -o output -L c++-impl -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
Some defaults for package roots are also provided
hidl-gen -o output -L c++-impl android.hardware.nfc@1.0 hidl-gen -o output -L vts android.hardware.nfc@1.0 hidl-gen -L hash android.hardware.nfc@1.0
Example command for vendor project
hidl-gen -L c++-impl -r vendor.foo:vendor/foo/interfaces vendor.foo.nfc@1.0
See update-makefiles-helper.sh and update-all-google-makefiles.sh for examples of how to generate HIDL makefiles (using the -Landroidbp option).
This is a helper tool to convert C headers to valid .hal files.
m c2hal && c2hal -h
This tool generates html documentation for hal interfaces.
m hidl-doc && hidl-doc -h