commit | 8adcb651a25c5faefb5e75166c453962a0189e1b | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Fri Feb 03 17:37:36 2017 +0100 |
committer | Steven Moreland <smoreland@google.com> | Fri Feb 03 17:30:09 2017 +0000 |
tree | d42764869df644b37a0610edfe70fa57e5e41d4d | |
parent | c30b90e8a2a38d588972e465e278263de79f3e03 [diff] |
Do proper cleanup of static block. The static initializer of each HAL library adds entries to global maps in a different static library, but it never deletes them. This causes problems if the HAL library is ever unloaded later, because the map will be pointing to entries that no longer exist. To fix this, switch to using __attribute__((constructor)) and ((destructor)), so we will clean up when we need to. Bug: 34950358 Test: drm_hidl_test, hidl_test Change-Id: If81b9712a651a07390fcc6641d86a77bb7a03f7c
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