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
This commit is contained in:
parent
799c3851bb
commit
6d1f56e17a
|
@ -0,0 +1,17 @@
|
|||
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
|
|
@ -0,0 +1,7 @@
|
|||
void AVmPayload_notifyPayloadReady() {}
|
||||
void AVmPayload_runVsockRpcServer() {}
|
||||
void AVmPayload_getVmInstanceSecret() {}
|
||||
void AVmPayload_getDiceAttestationChain() {}
|
||||
void AVmPayload_getDiceAttestationCdi() {}
|
||||
void AVmPayload_getApkContentsPath() {}
|
||||
void AVmPayload_getEncryptedStoragePath() {}
|
Loading…
Reference in New Issue