Merge "Move entry point and exception vector to library."
diff --git a/pvmfw/Android.bp b/pvmfw/Android.bp
index 130973a..3e45454 100644
--- a/pvmfw/Android.bp
+++ b/pvmfw/Android.bp
@@ -28,12 +28,11 @@
     name: "pvmfw_elf",
     stem: "pvmfw",
     srcs: [
-        "entry.S",
-        "exceptions.S",
         "idmap.S",
     ],
     static_libs: [
         "libpvmfw",
+        "libvmbase_entry",
     ],
     static_executable: true,
     nocrt: true,
diff --git a/vmbase/Android.bp b/vmbase/Android.bp
index 520a91c..473103e 100644
--- a/vmbase/Android.bp
+++ b/vmbase/Android.bp
@@ -20,3 +20,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"],
+}
diff --git a/pvmfw/entry.S b/vmbase/entry.S
similarity index 100%
rename from pvmfw/entry.S
rename to vmbase/entry.S
diff --git a/pvmfw/exceptions.S b/vmbase/exceptions.S
similarity index 100%
rename from pvmfw/exceptions.S
rename to vmbase/exceptions.S