Move entry point and exception vector to library.
Bug: 223166344
Test: Ran unprotected VM under crosvm.
Change-Id: Id0189800ff9fc896989c838e3b30d88494e99cd5
diff --git a/vmbase/Android.bp b/vmbase/Android.bp
index 972cd1b..c335bda 100644
--- a/vmbase/Android.bp
+++ b/vmbase/Android.bp
@@ -16,3 +16,22 @@
},
apex_available: ["com.android.virt"],
}
+
+cc_library_static {
+ name: "libvmbase_entry",
+ srcs: [
+ "entry.S",
+ "exceptions.S",
+ ],
+ nocrt: true,
+ no_libcrt: true,
+ system_shared_libs: [],
+ stl: "none",
+ enabled: false,
+ target: {
+ android_arm64: {
+ enabled: true,
+ },
+ },
+ apex_available: ["com.android.virt"],
+}