commit | faa21a688ef3124a6851f8c9beb16ecb2ea8b0e4 | [log] [tgz] |
---|---|---|
author | Paul Duffin <[email protected]> | Mon May 04 21:21:12 2020 +0100 |
committer | Paul Duffin <[email protected]> | Wed May 06 08:38:48 2020 +0100 |
tree | 1543a86fa0fea59b9c7df12c829134446b0dfaf2 | |
parent | dc1bce898e44af125905183c6419a47ad20176b9 [diff] |
Move call to ExportedToMake() out of LoadHook A change to run LoadHooks before (rather than after) the module has been registered breaks hidl_interface as its LoadHook calls the ExportedToMake() method which relies on state that is initialized during module registration. This change matches how aidl_interface works. Bug: 155462403 Test: m droid Merged-In: Id55d6fed7ca01e668477457ec124c87a7222268f Change-Id: Id55d6fed7ca01e668477457ec124c87a7222268f (cherry picked from commit 1164ec810cf552ddfb58a385fa7ce8c81fab3b49)
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 [email protected]
Some defaults for package roots are also provided
hidl-gen -o output -L c++-impl [email protected] hidl-gen -o output -L vts [email protected] hidl-gen -L hash [email protected]
Example command for vendor project
hidl-gen -L c++-impl -r vendor.foo:vendor/foo/interfaces [email protected]
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