commit | edc2212c5beabc636e2e299adcf025d2f4f1f93d | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Thu May 11 16:15:39 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Fri May 12 12:35:56 2017 -0700 |
tree | 1d9f32a5b0a9edaf613390bcd4640117ddff2773 | |
parent | f7fa068fe10f7ba5df8c4352686e906486ebec0f [diff] |
Add helper script to update all hidl makefiles. Until b/35570956 is fixed, we need to automatically generate makefiles in order to allow hal files to be built by the build system. Adding a script which just updates all of the Google makefiles at once to make hidl-gen changes easier. Test: ran script, checked output directories. Change-Id: I4bec1d43f5c8389904cdc919d9406996720c7df5
croot make hidl-gen
hidl-gen -o output-path -L language (-r interface-root) fqname output-path: directory to store the output files. language: output file for given language. e.g.c++, vts.. fqname: fully qualified name of the input files. For singe file input, follow the format: package@version::fileName For directory input, follow the format: package@version interface-root(optional): prefix and root path for fqname. If not set, use the default prefix: android.hardware and default root path defined in $TOP. examples: croot hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0