We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cd391c commit 254d0b0Copy full SHA for 254d0b0
2 files changed
.cargo/config.toml
@@ -1,7 +1,7 @@
1
[build]
2
# 缺省目标可以在命令行覆盖,例如:--target x86_64-unknown-none
3
# !!!注意:若要执行用户态程序,需注释下一行的默认target, 因为裸机目标不带例如std的标准库,会导致编译错误
4
-target = "x86_64-unknown-none"
+# target = "x86_64-unknown-none"
5
6
[target.x86_64-unknown-none]
7
rustflags = [
scripts/make_iso.sh
@@ -65,7 +65,9 @@ else
65
fi
66
67
# 编译内核(按需改为 --release 并同步 KERNEL_BIN)
68
-cargo +nightly build -Z build-std=core,compiler_builtins,alloc --target kernel/x86_64-rint.json
+cd kernel
69
+cargo +nightly build -Z build-std=core,compiler_builtins,alloc --target x86_64-rint.json
70
+cd ..
71
72
# 准备 ISO 内容(对齐 USAGE.md)
73
cp "${KERNEL_BIN}" "${ISO_DIR}/boot/kernel.bin"
0 commit comments