commit | dc1bce898e44af125905183c6419a47ad20176b9 | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Thu Apr 16 18:51:10 2020 +0900 |
committer | Jooyung Han <jooyung@google.com> | Mon Apr 27 23:48:22 2020 +0900 |
tree | 9873699266d2d783c9057257ab45a44e2fd1f22d | |
parent | 432a1ff4fd3207f6231c53fde44361d414a1483e [diff] |
Add min_sdk_version 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 Merged-In: If342e3b6f1bc9df2e7f87ea2cfec947c05d670b8 Change-Id: If342e3b6f1bc9df2e7f87ea2cfec947c05d670b8 (cherry picked from commit b1a31146d4f5db8c147178f97e04bef04cdcceb7)
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