libvmbase: Separate aarch64 asm files
Separate aarch64 assembly files to architecture specific directory.
This commit add new directory `asm` that should contain only entry assembly code separate per CPU architecture.
Bug: 362733888
Test: m {libvmbase,pvmfw}
Change-Id: Ie7f9d29c2c718eab0040e2ed7b5520c3d6b8cc09
diff --git a/libs/libvmbase/Android.bp b/libs/libvmbase/Android.bp
index c54f859..2d0294e 100644
--- a/libs/libvmbase/Android.bp
+++ b/libs/libvmbase/Android.bp
@@ -113,11 +113,16 @@
cc_library_static {
name: "libvmbase_entry",
defaults: ["vmbase_cc_defaults"],
- srcs: [
- "entry.S",
- "exceptions.S",
- "exceptions_panic.S",
- ],
+ srcs: [],
+ target: {
+ android_arm64: {
+ srcs: [
+ "asm/aarch64/entry.S",
+ "asm/aarch64/exceptions.S",
+ "asm/aarch64/exceptions_panic.S",
+ ],
+ },
+ },
}
filegroup {