The kernel modules with code to compile: true stdlib + boot entry (from the stdlib list) plus the kernel modules proper. `layout` is header-only and `my_kernel` is the user unit.
()
| 131 | .filter_map(|item| item.strip_prefix('"')?.strip_suffix('"')) |
| 132 | .map(str::to_owned) |
| 133 | .collect(); |
| 134 | } |
| 135 | panic!("kernel_snippet.build must declare abi_exports"); |
| 136 | } |
| 137 | |
| 138 | // The kernel modules with code to compile: true stdlib + boot entry (from the stdlib list) |
| 139 | // plus the kernel modules proper. `layout` is header-only and `my_kernel` is the user unit. |
| 140 | fn kernel_code_modules() -> Vec<(&'static str, &'static str)> { |
| 141 | let mut mods = get_stdlib_modules_for_mode(TargetMode::Kernel); |
| 142 | mods.extend([ |
| 143 | ("pmm", kernel::PMM), |
| 144 | ("vmm", kernel::VMM), |
| 145 | ("utilities", kernel::UTILITIES), |
| 146 | ("checks", kernel::CHECKS), |
| 147 | ("process", kernel::PROCESS), |
| 148 | ("scheduler", kernel::SCHEDULER), |
| 149 | ("syscall", kernel::SYSCALL), |
| 150 | ("fs", kernel::FS), |
| 151 | ("trap_entry", kernel::TRAP_ENTRY), |
no test coverage detected