tag | 3d5f5224b741134e07423087e406e9645420c867 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Jun 04 17:01:42 2018 -0700 |
object | a421b310a7ce6a2e839eaad65a70efb8026e482a |
Android Things LTS v1.0.1 (4795405)
commit | a421b310a7ce6a2e839eaad65a70efb8026e482a | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Mon Jun 04 09:43:07 2018 -0700 |
committer | Steven Moreland <smoreland@google.com> | Mon Jun 04 18:21:11 2018 +0000 |
tree | 155f17a0c16ef52b5583acef5fab80f4abdd2cde | |
parent | fd184e8c951d7bbcfc06b82083d61f4880bf8b53 [diff] |
Better error for doc_comment at the end of block. Previous error: ERROR: syntax error, unexpected '}' at ... New error: ERROR: Doc comments must preceed what they describe at ... Bug: 78135149 Test: hidl_error_test Change-Id: Id56e34a4beb33b0323eb86a85190be63ec3b135d
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