-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUCK
More file actions
29 lines (27 loc) · 1.05 KB
/
BUCK
File metadata and controls
29 lines (27 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
rust_binary(
name = "run_impl",
srcs = ["tools/run.rs"],
crate_root = "tools/run.rs",
edition = "2024",
visibility = ["PUBLIC"],
)
http_file(
name = "ovmf_firmware",
urls = ["https://github.com/retrage/edk2-nightly/raw/8b82cef2060fb27e07011d32911616084c8742ed/bin/DEBUGX64_OVMF.fd"],
sha256 = "727056000a2b1e6adfa36662fb570a27912ff961dbd7aedb8ad59b724567867a",
)
command_alias(
name = "run",
exe = ":run_impl",
env = {
"RUN_IMPL": "$(location :run_impl)",
"BUCK_OVMF_FD": "$(location :ovmf_firmware)",
"BUCK_KERNEL_BIN": "$(location //kernel:kernel_artifact)",
"BUCK_MKROOTFS_BIN": "$(location //tools/mkrootfs:mkrootfs)",
"BUCK_WIMUNPACK_BIN": "$(location //tools/wimunpack:wimunpack)",
"BUCK_NATIVE_INIT_EXE": "$(location //userspace/native_init:native_init[init])",
"BUCK_CHILD_EXE": "$(location //userspace/native_init:native_init[child])",
"BUCK_NTDLL_DLL": "$(location //userspace/native_init:native_init[ntdll_dll])",
},
visibility = ["PUBLIC"],
)