commit | 82bf335a78747e57c0f7f52a57a413cc2a9d48f4 | [log] [tgz] |
---|---|---|
author | Jooyung Han <[email protected]> | Wed Apr 29 15:19:33 2020 +0900 |
committer | Jooyung Han <[email protected]> | Wed May 13 13:07:11 2020 +0900 |
tree | b9bb1f6e0fb4b28df8caf75d0bcb60add04fad2e | |
parent | faa21a688ef3124a6851f8c9beb16ecb2ea8b0e4 [diff] |
Add min_sdk_version(30) when generating cc modules Those listed hidl_interface modules are used by mainline modules(APEX/APK) and they should declare min_sdk_version accordingly. Setting this prop doesn't change any build outputs, but will let the module authors know that they contribute the mainlines modules which target and should run on declared sdk version. Bug: 152655956 Test: m Change-Id: Ic82cf147240b953f1d807dd3138c45708fd1fc1c
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