mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-24 11:58:41 +00:00
crosvm: move kernel_cmdline to it's own crate
We'll want architecture code to be able to supply and manipulate Linux kernel command lines, so let's move this out to it's own crate and export the interfaces. BUG=chromium:797868 TEST=./build_test passes on all architectures TEST=crosvm runs on caroline Change-Id: I94904055ac02582a4f4d8bbb54d0f41ed14b955d Signed-off-by: Sonny Rao <sonnyrao@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/898351 Reviewed-by: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
parent
865323d0ed
commit
6cc352f4fa
5 changed files with 19 additions and 1 deletions
8
Cargo.lock
generated
8
Cargo.lock
generated
|
@ -21,6 +21,7 @@ dependencies = [
|
|||
"data_model 0.1.0",
|
||||
"devices 0.1.0",
|
||||
"io_jail 0.1.0",
|
||||
"kernel_cmdline 0.1.0",
|
||||
"kernel_loader 0.1.0",
|
||||
"kvm 0.1.0",
|
||||
"libc 0.2.34 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -80,6 +81,13 @@ dependencies = [
|
|||
"libc 0.2.34 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "kernel_cmdline"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"libc 0.2.34 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "kernel_loader"
|
||||
version = "0.1.0"
|
||||
|
|
|
@ -17,6 +17,7 @@ devices = { path = "devices" }
|
|||
io_jail = { path = "io_jail" }
|
||||
kvm = { path = "kvm" }
|
||||
sys_util = { path = "sys_util" }
|
||||
kernel_cmdline = { path = "kernel_cmdline" }
|
||||
kernel_loader = { path = "kernel_loader" }
|
||||
libc = "=0.2.34"
|
||||
byteorder = "=1.1.0"
|
||||
|
|
9
kernel_cmdline/Cargo.toml
Normal file
9
kernel_cmdline/Cargo.toml
Normal file
|
@ -0,0 +1,9 @@
|
|||
[package]
|
||||
name = "kernel_cmdline"
|
||||
version = "0.1.0"
|
||||
|
||||
[dependencies]
|
||||
libc = "*"
|
||||
|
||||
[lib]
|
||||
path = "src/kernel_cmdline.rs"
|
|
@ -11,6 +11,7 @@ extern crate kvm;
|
|||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
extern crate x86_64;
|
||||
extern crate kernel_loader;
|
||||
extern crate kernel_cmdline;
|
||||
extern crate byteorder;
|
||||
extern crate net_util;
|
||||
extern crate qcow;
|
||||
|
@ -21,7 +22,6 @@ extern crate vm_control;
|
|||
extern crate data_model;
|
||||
|
||||
pub mod argument;
|
||||
pub mod kernel_cmdline;
|
||||
pub mod device_manager;
|
||||
pub mod linux;
|
||||
|
||||
|
|
Loading…
Reference in a new issue