Home
last modified time | relevance | path

Searched refs:PathBuf (Results 1 – 25 of 71) sorted by relevance

123

/DADK/dadk-config/src/
H A Dmanifest.rs1 use std::path::PathBuf;
23 pub fn load(path: &PathBuf) -> Result<Self> { in load()
63 pub rootfs_config: PathBuf,
70 pub hypervisor_config: PathBuf,
74 pub boot_config: PathBuf,
78 pub sysroot_dir: PathBuf,
82 pub cache_root_dir: PathBuf,
88 pub user_config_dir: PathBuf,
92 fn default_rootfs_config_path() -> PathBuf { in default_rootfs_config_path()
98 fn default_hypervisor_config_path() -> PathBuf { in default_hypervisor_config_path()
[all …]
H A Dmanifest.rs1 use std::path::PathBuf;
23 pub fn load(path: &PathBuf) -> Result<Self> { in load()
63 pub rootfs_config: PathBuf,
70 pub hypervisor_config: PathBuf,
74 pub boot_config: PathBuf,
78 pub sysroot_dir: PathBuf,
82 pub cache_root_dir: PathBuf, in default_rootfs_config_path()
88 pub user_config_dir: PathBuf, in default_hypervisor_config_path()
92 fn default_rootfs_config_path() -> PathBuf { in default_boot_config_path()
98 fn default_hypervisor_config_path() -> PathBuf { in default_sysroot_dir()
[all...]
H A Dmanifest.rs1 use std::path::PathBuf;
23 pub fn load(path: &PathBuf) -> Result<Self> { in load()
63 pub rootfs_config: PathBuf,
70 pub hypervisor_config: PathBuf,
74 pub boot_config: PathBuf,
78 pub sysroot_dir: PathBuf, in default_rootfs_config_path()
82 pub cache_root_dir: PathBuf, in default_hypervisor_config_path()
88 pub user_config_dir: PathBuf, in default_boot_config_path()
92 fn default_rootfs_config_path() -> PathBuf {
98 fn default_hypervisor_config_path() -> PathBuf {
[all...]
H A Dmanifest.rs1 use std::path::PathBuf;
23 pub fn load(path: &PathBuf) -> Result<Self> { in load()
63 pub rootfs_config: PathBuf,
70 pub hypervisor_config: PathBuf,
74 pub boot_config: PathBuf,
78 pub sysroot_dir: PathBuf, in default_rootfs_config_path()
82 pub cache_root_dir: PathBuf, in default_hypervisor_config_path()
88 pub user_config_dir: PathBuf, in default_boot_config_path()
92 fn default_rootfs_config_path() -> PathBuf {
98 fn default_hypervisor_config_path() -> PathBuf {
[all...]
/DADK/dadk/src/
H A Dutils.rs1 use std::path::PathBuf;
6 pub(super) fn check_dir_exists<'a>(path: &'a PathBuf) -> Result<&'a PathBuf> { in check_dir_exists() argument
18 pub fn abs_path(path: &PathBuf) -> PathBuf { in abs_path() argument
/DADK/crates/test_base/src/
H A Ddadk_config.rs1 use std::path::PathBuf;
8 test_base_path: PathBuf,
13 pub fn test_base_path(&self) -> &PathBuf { in test_base_path() argument
18 pub fn abs_path(&self, relative_path: &str) -> PathBuf { in abs_path() argument
23 pub fn templates_dir(&self) -> PathBuf { in templates_dir() argument
34 let mut test_base_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")); in setup()
59 let expected_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")) in test_test_base_path()
H A Dglobal.rs1 use std::path::PathBuf;
8 project_base_path: PathBuf,
18 pub fn project_base_path(&self) -> &PathBuf { in project_base_path() argument
23 pub fn abs_path(&self, relative_path: &str) -> PathBuf { in abs_path() argument
28 pub fn config_v1_dir(&self) -> PathBuf { in config_v1_dir() argument
32 pub fn config_v2_dir(&self) -> PathBuf { in config_v2_dir() argument
54 pub fn fake_dadk_cache_root(&self) -> PathBuf { in fake_dadk_cache_root() argument
59 pub fn fake_dragonos_sysroot(&self) -> PathBuf { in fake_dragonos_sysroot() argument
69 let mut project_base_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")); in setup()
89 let binding = PathBuf::from(env!("CARGO_MANIFEST_DIR")); in test_project_base_path()
/DADK/dadk-user/src/executor/
H A Dtarget.rs
/DADK/dadk-user/src/parser/
H A Dmod.rs49 path::PathBuf,
66 config_dir: PathBuf,
68 config_files: Vec<PathBuf>,
72 pub config_file: Option<PathBuf>,
126 pub fn new(config_dir: PathBuf) -> Self { in new()
141 /// * `Ok(Vec<(PathBuf, DADKTask)>)` - 任务列表(配置文件路径, 任务)
143 pub fn parse(&mut self) -> Result<Vec<(PathBuf, DADKTask)>> { in parse() argument
146 let r: Result<Vec<(PathBuf, DADKTask)>> = self.gen_tasks(); in parse()
157 let mut dir_queue: Vec<PathBuf> = Vec::new(); in scan_config_files()
169 let path: PathBuf in scan_config_files()
198 gen_tasks(&self) -> Result<Vec<(PathBuf, DADKTask)>> gen_tasks() argument
[all...]
H A Dmod.rs49 path::PathBuf,
66 config_dir: PathBuf,
68 config_files: Vec<PathBuf>,
72 pub config_file: Option<PathBuf>,
126 pub fn new(config_dir: PathBuf) -> Self { in new()
143 pub fn parse(&mut self) -> Result<Vec<(PathBuf, DADKTask)>> { in parse() argument
146 let r: Result<Vec<(PathBuf, DADKTask)>> = self.gen_tasks(); in parse()
157 let mut dir_queue: Vec<PathBuf> = Vec::new(); in scan_config_files()
169 let path: PathBuf = entry.path(); in scan_config_files()
198 fn gen_tasks(&self) -> Result<Vec<(PathBuf, DADKTask)>> { in gen_tasks() argument
[all …]
H A Dmod.rs49 path::PathBuf,
66 config_dir: PathBuf,
68 config_files: Vec<PathBuf>,
72 pub config_file: Option<PathBuf>,
126 pub fn new(config_dir: PathBuf) -> Self { in new()
141 /// * `Ok(Vec<(PathBuf, DADKTask)>)` - 任务列表(配置文件路径, 任务)
143 pub fn parse(&mut self) -> Result<Vec<(PathBuf, DADKTask)>> { in parse() argument
146 let r: Result<Vec<(PathBuf, DADKTask)>> = self.gen_tasks(); in parse()
157 let mut dir_queue: Vec<PathBuf> = Vec::new(); in scan_config_files()
169 let path: PathBuf in scan_config_files()
198 gen_tasks(&self) -> Result<Vec<(PathBuf, DADKTask)>> gen_tasks() argument
[all...]
H A Dmod.rs49 path::PathBuf,
66 config_dir: PathBuf, in fmt()
68 config_files: Vec<PathBuf>, in fmt()
72 pub config_file: Option<PathBuf>, in fmt()
126 pub fn new(config_dir: PathBuf) -> Self { in parse()
141 /// * `Ok(Vec<(PathBuf, DADKTask)>)` - 任务列表(配置文件路径, 任务) in scan_config_files()
143 pub fn parse(&mut self) -> Result<Vec<(PathBuf, DADKTask)>> { in scan_config_files()
146 let r: Result<Vec<(PathBuf, DADKTask)>> = self.gen_tasks(); in scan_config_files()
157 let mut dir_queue: Vec<PathBuf> = Vec::new(); in scan_config_files()
169 let path: PathBuf in scan_config_files()
123 parse(&mut self) -> Result<Vec<(PathBuf, DADKTask)>, ParserError> parse() argument
184 gen_tasks(&self) -> Result<Vec<(PathBuf, DADKTask)>, ParserError> gen_tasks() argument
[all...]
H A Dmod.rs49 path::PathBuf,
66 config_dir: PathBuf,
68 config_files: Vec<PathBuf>,
72 pub config_file: Option<PathBuf>,
126 pub fn new(config_dir: PathBuf) -> Self {
141 /// * `Ok(Vec<(PathBuf, DADKTask)>)` - 任务列表(配置文件路径, 任务)
143 pub fn parse(&mut self) -> Result<Vec<(PathBuf, DADKTask)>> {
146 let r: Result<Vec<(PathBuf, DADKTask)>> = self.gen_tasks(); in parse()
157 let mut dir_queue: Vec<PathBuf> = Vec::new(); in scan_config_files()
169 let path: PathBuf in scan_config_files()
144 parse(&mut self) -> Result<Vec<(PathBuf, DADKTask)>, ParserError> parse() argument
205 gen_tasks(&self) -> Result<Vec<(PathBuf, DADKTask)>, ParserError> gen_tasks() argument
[all...]
/DADK/dadk/src/context/
H A Dmod.rs1 use std::{cell::OnceCell, path::PathBuf};
41 pub fn workdir(&self) -> PathBuf { in workdir() argument
42 abs_path(&PathBuf::from(&self.command.workdir)) in workdir()
61 pub fn sysroot_dir(&self) -> Result<PathBuf> { in sysroot_dir() argument
70 pub fn cache_root_dir(&self) -> Result<PathBuf> { in cache_root_dir() argument
77 pub fn user_config_dir(&self) -> Result<PathBuf> { in user_config_dir() argument
88 pub fn disk_image_path(&self) -> PathBuf { in disk_image_path() argument
94 pub fn disk_mount_path(&self) -> PathBuf { in disk_mount_path() argument
H A Dmanifest.rs1 use std::{path::PathBuf, str::FromStr};
10 let manifest_path = PathBuf::from_str(&builder.command.as_ref().unwrap().manifest_path) in parse_manifest()
16 let manifest_path = abs_path(&PathBuf::from(workdir)).join(manifest_path); in parse_manifest()
/DADK/dadk-user/src/utils/
H A Dpath.rs1 use std::path::PathBuf;
4 pub fn abs_path(path: &PathBuf) -> PathBuf { in abs_path() argument
/DADK/dadk-user/src/console/
H A Dmod.rs
H A Dmod.rs
H A Dinteractive.rs
/DADK/dadk-user/src/
H A Dcontext.rs2 path::PathBuf,
19 sysroot_dir: Option<PathBuf>,
21 config_dir: Option<PathBuf>,
27 cache_dir: Option<PathBuf>,
83 pub fn sysroot_dir(&self) -> Option<&PathBuf> { in set_self_ref()
87 pub fn config_dir(&self) -> Option<&PathBuf> { in target_arch()
99 pub fn cache_dir(&self) -> Option<&PathBuf> { in action()
89 sysroot_dir(&self) -> Option<&PathBuf> sysroot_dir() argument
93 config_dir(&self) -> Option<&PathBuf> config_dir() argument
105 cache_dir(&self) -> Option<&PathBuf> cache_dir() argument
H A Dcontext.rs2 path::PathBuf,
19 sysroot_dir: Option<PathBuf>,
21 config_dir: Option<PathBuf>,
27 cache_dir: Option<PathBuf>,
83 pub fn sysroot_dir(&self) -> Option<&PathBuf> { in target_arch()
87 pub fn config_dir(&self) -> Option<&PathBuf> { in sysroot_dir()
99 pub fn cache_dir(&self) -> Option<&PathBuf> { in thread_num()
85 sysroot_dir(&self) -> Option<&PathBuf> sysroot_dir() argument
89 config_dir(&self) -> Option<&PathBuf> config_dir() argument
101 cache_dir(&self) -> Option<&PathBuf> cache_dir() argument
H A Dcontext.rs2 path::PathBuf,
19 sysroot_dir: Option<PathBuf>,
21 config_dir: Option<PathBuf>,
27 cache_dir: Option<PathBuf>,
83 pub fn sysroot_dir(&self) -> Option<&PathBuf> { in target_arch()
87 pub fn config_dir(&self) -> Option<&PathBuf> { in sysroot_dir()
99 pub fn cache_dir(&self) -> Option<&PathBuf> { in thread_num()
85 sysroot_dir(&self) -> Option<&PathBuf> sysroot_dir() argument
89 config_dir(&self) -> Option<&PathBuf> config_dir() argument
101 cache_dir(&self) -> Option<&PathBuf> cache_dir() argument
H A Dcontext.rs2 path::PathBuf,
19 sysroot_dir: Option<PathBuf>,
21 config_dir: Option<PathBuf>,
27 cache_dir: Option<PathBuf>,
83 pub fn sysroot_dir(&self) -> Option<&PathBuf> { in sysroot_dir() argument
87 pub fn config_dir(&self) -> Option<&PathBuf> { in config_dir() argument
99 pub fn cache_dir(&self) -> Option<&PathBuf> { in cache_dir() argument
/DADK/dadk-config/src/common/
H A Dtask.rs3 use std::path::PathBuf;
51 pub pre_build: Option<PathBuf>,
54 pub post_build: Option<PathBuf>,
61 pre_build: Option<PathBuf>, in new() argument
62 post_build: Option<PathBuf>, in new() argument
86 pub in_dragonos_path: Option<PathBuf>,
91 pub fn new(in_dragonos_path: Option<PathBuf>) -> Self { in new()
/DADK/dadk/src/actions/rootfs/
H A Ddisk_img.rs1 use std::{fs::File, io::Write, mem::ManuallyDrop, path::PathBuf, process::Command};
85 disk_image_path: &PathBuf, in mount_partitioned_image() argument
86 disk_mount_path: &PathBuf, in mount_partitioned_image() argument
107 disk_image_path: &PathBuf, in mount_unpartitioned_image() argument
108 disk_mount_path: &PathBuf, in mount_unpartitioned_image() argument
180 fn disk_path_safety_check(disk_image_path: &PathBuf) -> Result<()> { in disk_path_safety_check()
195 fn create_partitioned_image(ctx: &DADKExecContext, disk_image_path: &PathBuf) -> Result<()> { in create_partitioned_image()
214 fn create_unpartitioned_image(ctx: &DADKExecContext, disk_image_path: &PathBuf) -> Result<()> { in create_unpartitioned_image()
221 fn create_raw_img(disk_image_path: &PathBuf, image_size: usize) -> Result<()> { in create_raw_img() argument
277 fn create_partitioned_image(disk_image_path: &PathBuf, part_type: PartitionType) -> Result<()> { in create_partitioned_image() argument
[all …]

123