Move virtmgr files to their own directory
Create virtualizationmanager/ folder, move the corresponding files into it and create build rules. We also remove now unused dependencies of virtualizationservice. Bug: 245727626 Test: atest -p packages/modules/Virtualization:avf-presubmit Change-Id: If33e88bdcdac89e1d451589463ce21e11d6aafc8
This commit is contained in:
parent
afc9a9eb46
commit
3f0f1e80df
|
@ -55,7 +55,7 @@
|
|||
"path": "packages/modules/Virtualization/encryptedstore"
|
||||
},
|
||||
{
|
||||
"path": "packages/modules/Virtualization/virtualizationservice"
|
||||
"path": "packages/modules/Virtualization/virtualizationmanager"
|
||||
},
|
||||
{
|
||||
"path": "packages/modules/Virtualization/libs/apexutil"
|
||||
|
|
|
@ -528,7 +528,7 @@ public class MicrodroidHostTests extends MicrodroidHostTestCaseBase {
|
|||
"-m",
|
||||
"1",
|
||||
"-e",
|
||||
"'virtualizationservice::crosvm.*exited with status exit status:'");
|
||||
"'virtualizationmanager::crosvm.*exited with status exit status:'");
|
||||
|
||||
// Check that tombstone is received (from host logcat)
|
||||
String ramdumpRegex =
|
||||
|
|
|
@ -1312,7 +1312,7 @@ public class MicrodroidTests extends MicrodroidDeviceTestBase {
|
|||
.command(
|
||||
"logcat",
|
||||
"-e",
|
||||
"virtualizationservice::aidl: Console.*executing main task",
|
||||
"virtualizationmanager::aidl: Console.*executing main task",
|
||||
"-t",
|
||||
time)
|
||||
.start();
|
||||
|
|
|
@ -0,0 +1,82 @@
|
|||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
rust_defaults {
|
||||
name: "virtualizationmanager_defaults",
|
||||
crate_name: "virtualizationmanager",
|
||||
edition: "2021",
|
||||
// Only build on targets which crosvm builds on.
|
||||
enabled: false,
|
||||
target: {
|
||||
android64: {
|
||||
compile_multilib: "64",
|
||||
enabled: true,
|
||||
},
|
||||
linux_bionic_arm64: {
|
||||
enabled: true,
|
||||
},
|
||||
},
|
||||
prefer_rlib: true,
|
||||
rustlibs: [
|
||||
"android.system.virtualizationcommon-rust",
|
||||
"android.system.virtualizationservice-rust",
|
||||
"android.system.virtualizationservice_internal-rust",
|
||||
"android.system.virtualmachineservice-rust",
|
||||
"android.os.permissions_aidl-rust",
|
||||
"libandroid_logger",
|
||||
"libanyhow",
|
||||
"libapkverify",
|
||||
"libbase_rust",
|
||||
"libbinder_rs",
|
||||
"libclap",
|
||||
"libcommand_fds",
|
||||
"libdisk",
|
||||
"liblazy_static",
|
||||
"liblibc",
|
||||
"liblog_rust",
|
||||
"libmicrodroid_metadata",
|
||||
"libmicrodroid_payload_config",
|
||||
"libnested_virt",
|
||||
"libnix",
|
||||
"libonce_cell",
|
||||
"libregex",
|
||||
"librpcbinder_rs",
|
||||
"librustutils",
|
||||
"libsemver",
|
||||
"libselinux_bindgen",
|
||||
"libserde",
|
||||
"libserde_json",
|
||||
"libserde_xml_rs",
|
||||
"libshared_child",
|
||||
"libstatslog_virtualization_rust",
|
||||
"libtombstoned_client_rust",
|
||||
"libvm_control",
|
||||
"libvmconfig",
|
||||
"libzip",
|
||||
"libvsock",
|
||||
// TODO(b/202115393) stabilize the interface
|
||||
"packagemanager_aidl-rust",
|
||||
],
|
||||
shared_libs: [
|
||||
"libbinder_rpc_unstable",
|
||||
"libselinux",
|
||||
],
|
||||
}
|
||||
|
||||
rust_binary {
|
||||
name: "virtmgr",
|
||||
defaults: ["virtualizationmanager_defaults"],
|
||||
srcs: ["src/main.rs"],
|
||||
apex_available: ["com.android.virt"],
|
||||
}
|
||||
|
||||
rust_test {
|
||||
name: "virtualizationmanager_device_test",
|
||||
srcs: ["src/main.rs"],
|
||||
defaults: ["virtualizationmanager_defaults"],
|
||||
rustlibs: [
|
||||
"libtempfile",
|
||||
],
|
||||
test_suites: ["general-tests"],
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"avf-presubmit": [
|
||||
{
|
||||
"name": "virtualizationmanager_device_test"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -2,10 +2,11 @@ package {
|
|||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
rust_defaults {
|
||||
name: "virtualizationservice_defaults",
|
||||
rust_binary {
|
||||
name: "virtualizationservice",
|
||||
crate_name: "virtualizationservice",
|
||||
edition: "2021",
|
||||
srcs: ["src/main.rs"],
|
||||
// Only build on targets which crosvm builds on.
|
||||
enabled: false,
|
||||
target: {
|
||||
|
@ -26,67 +27,14 @@ rust_defaults {
|
|||
"android.os.permissions_aidl-rust",
|
||||
"libandroid_logger",
|
||||
"libanyhow",
|
||||
"libapkverify",
|
||||
"libbase_rust",
|
||||
"libbinder_rs",
|
||||
"libcommand_fds",
|
||||
"libdisk",
|
||||
"liblazy_static",
|
||||
"liblibc",
|
||||
"liblog_rust",
|
||||
"libmicrodroid_metadata",
|
||||
"libmicrodroid_payload_config",
|
||||
"libnested_virt",
|
||||
"libnix",
|
||||
"libonce_cell",
|
||||
"libregex",
|
||||
"librpcbinder_rs",
|
||||
"librustutils",
|
||||
"libsemver",
|
||||
"libselinux_bindgen",
|
||||
"libserde",
|
||||
"libserde_json",
|
||||
"libserde_xml_rs",
|
||||
"libshared_child",
|
||||
"libstatslog_virtualization_rust",
|
||||
"libtombstoned_client_rust",
|
||||
"libvm_control",
|
||||
"libvmconfig",
|
||||
"libzip",
|
||||
"libvsock",
|
||||
// TODO(b/202115393) stabilize the interface
|
||||
"packagemanager_aidl-rust",
|
||||
],
|
||||
shared_libs: [
|
||||
"libbinder_rpc_unstable",
|
||||
"libselinux",
|
||||
],
|
||||
}
|
||||
|
||||
rust_binary {
|
||||
name: "virtualizationservice",
|
||||
defaults: ["virtualizationservice_defaults"],
|
||||
srcs: ["src/main.rs"],
|
||||
apex_available: ["com.android.virt"],
|
||||
}
|
||||
|
||||
rust_binary {
|
||||
name: "virtmgr",
|
||||
defaults: ["virtualizationservice_defaults"],
|
||||
srcs: ["src/virtmgr.rs"],
|
||||
rustlibs: [
|
||||
"libclap",
|
||||
],
|
||||
apex_available: ["com.android.virt"],
|
||||
}
|
||||
|
||||
rust_test {
|
||||
name: "virtualizationservice_device_test",
|
||||
srcs: ["src/virtmgr.rs"],
|
||||
defaults: ["virtualizationservice_defaults"],
|
||||
rustlibs: [
|
||||
"libclap",
|
||||
"libtempfile",
|
||||
],
|
||||
test_suites: ["general-tests"],
|
||||
}
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"avf-presubmit": [
|
||||
{
|
||||
"name": "virtualizationservice_device_test"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue