| commit | cd3eb032f03bae79a293b2c0d516f45d37103eda | [log] [tgz] |
|---|---|---|
| author | Cole Faust <[email protected]> | Fri Feb 14 15:34:21 2025 -0800 |
| committer | Cole Faust <[email protected]> | Fri Feb 14 15:38:27 2025 -0800 |
| tree | a0432d6972e999c9b992a5fcb64fa2cede517694 | |
| parent | 45daa3d25936a15a69d7d27176110efab5d16792 [diff] |
Dist files in GenerateSingletonBuildActions To remove our reliance on MakeVars(). Bug: 395184523 Test: Presubmits Change-Id: Ia7835ec14334bc91a1e8918ad16a399c8156dfb1
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).
NOTE: When using the -Landroidbp option, you can force generated modules to be installed in
/system_extrather than other partition by putting a marker file.hidl_for_system_extalongside*.halfiles.
NOTE: You can also install the vendor variant of the generated modules to be installed in
/odmrather than/vendorby putting a marker file.hidl_for_odmalongside*.halfiles.
This is a helper tool to convert C headers to valid .hal files.
m c2hal && c2hal -h