android_packages_modules_Vi.../vm_payload/stub
Alan Stokes 6d1f56e17a Check in stub.c
Add a copy of the generated stub.c, for use in other build
systems. Add a readme to explain why, and how to update.

Bug: 259237660
Test: n/a
Change-Id: If4aba724b9addf3b67ea125777f668b7c908717d
2022-12-07 11:49:59 +00:00
..
readme.txt Check in stub.c 2022-12-07 11:49:59 +00:00
stub.c Check in stub.c 2022-12-07 11:49:59 +00:00

readme.txt

The stub.c file here is a checked-in version of a generated code file.

It is not needed when building a payload client in the Android build
system. The build system will automatically generated it (from
libvm_payload.map.txt) and then compile it to form the stub version of
libvm_payload.so. Clients link against the stub, but at runtime they
will use the real libvm_payload.so provided by Microdroid.

This file is here to support non-Android build systems, to allow a
suitable stub libvm_payload.so to be built.

To update this file, something like the following should work:

lunch aosp_arm64-eng
m MicrodroidTestNativeLib

The generated stub file can then be found at out/soong/.intermediates/packages/modules/Virtualization/vm_payload/libvm_payload/android_arm64_armv8-a_shared_current/gen/stub.c