/DADK/dadk-config/src/common/ |
H A D | target_arch.rs | 14 pub const EXPECTED: [&'static str; 3] = ["x86_64", "riscv64", "aarch64"]; 17 impl TryFrom<&str> for TargetArch { in default() 20 fn try_from(value: &str) -> Result<Self, Self::Error> { 30 impl From<TargetArch> for &str { in try_from() 42 let x: &str = val.into(); 107 let x86_64: &str = TargetArch::X86_64.into(); in test_into_str() 110 let riscv64: &str = TargetArch::RiscV64.into(); in test_into_str() 12 pub const EXPECTED: [&'static str; 2] = ["x86_64", "riscv64"]; global() variable 34 into(self) -> &'static str into() argument
|
H A D | target_arch.rs | 14 pub const EXPECTED: [&'static str; 3] = ["x86_64", "riscv64", "aarch64"]; 17 impl TryFrom<&str> for TargetArch { 20 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() 30 impl From<TargetArch> for &str { in from() 42 let x: &str = val.into(); 107 let x86_64: &str = TargetArch::X86_64.into(); 110 let riscv64: &str = TargetArch::RiscV64.into(); in test_into_string() 13 pub const EXPECTED: [&'static str; 2] = ["x86_64", "riscv64"]; global() variable 28 impl From<TargetArch> for &str { global() implementation
|
H A D | target_arch.rs | 14 pub const EXPECTED: [&'static str; 3] = ["x86_64", "riscv64", "aarch64"]; variable 17 impl TryFrom<&str> for TargetArch { 20 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() 30 impl From<TargetArch> for &str { implementation 42 let x: &str = val.into(); in from() 107 let x86_64: &str = TargetArch::X86_64.into(); in test_into_str() 110 let riscv64: &str = TargetArch::RiscV64.into(); in test_into_str()
|
/DADK/dadk-config/src/boot/ |
H A D | uboot.rs | 39 const DEFAULT_DOWNLOAD_URL: &'static str = variable 42 const DEFAULT_VERSION: &'static str = "v2023.10"; variable 44 const DEFAULT_PATH_PREFIX: &'static str = "bin/uboot/"; variable 47 let arch_str: &str = target_arch.into(); in full_download_url()
|
H A D | metadata.rs | 63 fn parse_boot_metadata(toml_str: &str) -> Result<BootMetadata, toml::de::Error> { in parse_boot_metadata() 67 fn assert_missing_field(err_str: &str, field: &str) { in assert_missing_field() argument 71 fn assert_unknown_variant(err_str: &str, variant: &str) { in assert_unknown_variant() argument
|
/DADK/dadk-config/src/ |
H A D | utils.rs | 12 pub fn split_to_kv_array(args: &str) -> Result<Vec<String>> { in split_to_kv_array() 41 separator: &str, in apply_kv_array() argument 42 multi_value_keys: &[&str], in apply_kv_array() argument 43 single_value_keys: &[&str], in apply_kv_array() argument 110 fn infer_multi_value_keys(array: &Vec<String>, separator: &str) -> IndexSet<String> { in infer_multi_value_keys() 129 pub fn get_key(item: &str, separator: &str) -> Option<String> { in get_key() argument 206 let single_value_keys: Vec<&str> = vec![]; in test_apply_kv_array_insert_multi_value_key()
|
/DADK/crates/test_base/src/ |
H A D | global.rs | 12 const CONFIG_V1_DIR: &'static str = "tests/data/dadk_config_v1"; variable 13 const CONFIG_V2_DIR: &'static str = "tests/data/dadk_config_v2"; variable 14 const FAKE_DRAGONOS_SYSROOT: &'static str = "tests/data/fake_dragonos_sysroot"; variable 15 const FAKE_DADK_CACHE_ROOT: &'static str = "tests/data/fake_dadk_cache_root"; variable 23 pub fn abs_path(&self, relative_path: &str) -> PathBuf { in abs_path()
|
H A D | dadk_config.rs | 18 pub fn abs_path(&self, relative_path: &str) -> PathBuf { in abs_path() 24 const TEMPLATES_DIR: &str = "templates"; in templates_dir()
|
/DADK/dadk-config/tests/ |
H A D | test_dadk_manifest.rs | 7 const DADK_MANIFEST_FILE_NAME: &str = "dadk-manifest.toml";
|
H A D | test_rootfs_config.rs | 10 const ROOTFS_CONFIG_FILE_NAME: &str = "config/rootfs.toml";
|
H A D | test_rootfs_config.rs | 10 const ROOTFS_CONFIG_FILE_NAME: &str = "config/rootfs.toml";
|
H A D | test_boot_config.rs | 7 const BOOT_CONFIG_FILE_NAME: &str = "config/boot.toml";
|
H A D | test_dadk_manifest.rs | 7 const DADK_MANIFEST_FILE_NAME: &str = "dadk-manifest.toml";
|
H A D | test_dadk_manifest.rs | 7 const DADK_MANIFEST_FILE_NAME: &str = "dadk-manifest.toml";
|
/DADK/dadk-user/src/executor/ |
H A D | target.rs |
|
/DADK/dadk-user/src/parser/ |
H A D | task.rs | 19 pub static NAME_VERSION_REPLACE_TABLE: [(&str, &str); 6] = [ 204 pub fn name_version_uppercase(name: &str, version: &str) -> String { in name_version_uppercase() 200 name_version_uppercase(name: &str, version: &str) -> String name_version_uppercase() argument 432 key(&self) -> &str key() argument 436 value(&self) -> &str value() argument 464 pub const EXPECTED: [&'static str; 4] = ["aarch64", "x86_64", "riscv64", "riscv32"]; global() variable 488 into(self) -> &'static str into() argument
|
H A D | task.rs | 19 pub static NAME_VERSION_REPLACE_TABLE: [(&str, &str); 6] = [ 204 pub fn name_version_uppercase(name: &str, version: &str) -> String { in name_version_env() 208 name_version_uppercase(name: &str, version: &str) -> String name_version_uppercase() argument 548 key(&self) -> &str key() argument 552 value(&self) -> &str value() argument 580 pub const EXPECTED: [&'static str; 4] = ["aarch64", "x86_64", "riscv64", "riscv32"]; global() variable 604 into(self) -> &'static str into() argument
|
H A D | config.rs |
|
H A D | config.rs |
|
/DADK/dadk/src/actions/rootfs/ |
H A D | loopdev.rs | 1 use core::str; 9 const LOOP_DEVICE_LOSETUP_A_REGEX: &str = r"^/dev/loop(\d+)"; 134 str::from_utf8(output.stderr.as_slice()).unwrap_or("<Unknown>") in detach() 197 disk_img_path: &str, in __loop_device_path_by_disk_image_path() argument 198 losetup_a_output: &str, in __loop_device_path_by_disk_image_path() argument 223 const DEVICE_NAME_SHOULD_MATCH: [&str; 3] = in test_regex_find_loop_device()
|
/DADK/dadk-user/src/console/ |
H A D | clean.rs |
|
H A D | mod.rs |
|
H A D | mod.rs |
|
H A D | new_config.rs |
|
/DADK/dadk-config/src/boot/hypervisor/ |
H A D | qemu.rs | 40 let arch_name: &str = arch.into(); in path() 91 const MULTI_VALUE_KEYS: &[&str] = &[ 95 const SINGLE_VALUE_KEYS: &[&str] = &["-cpu", "-machine", "-m", "-serial", "-monitor", "-display"]; 97 const NO_VALUE_KEYS: &[&str] = &["--no-reboot", "-nographic", "-enable-kvm"]; 99 const NOT_ALLOWED_TO_SET_KEYS: &[&str] = &["-kernel", "-append", "-initrd"]; 101 fn check_qemu_arg(arg: &str) -> Result<()> { in check_qemu_arg()
|