-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 761 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
clean:
cargo clean
build-release:
cargo run --release
build-debug:
cargo run --release # todo
run-qemu: clean build-release
qemu-system-x86_64 -drive format=raw,file=target/os.img -boot c
run-bochs: clean build-release
dd if=target/os.img of=bochs/os.img bs=512 count=50000 conv=notrunc
bochs -q -f bochs/conf/bochsrc.bxrc
debug-qemu: clean build-debug
qemu-system-x86_64 -drive format=raw,file=target/os.img -boot c -s -S &
rust-gdb target/x86_64-bootloader/bootloader/boot --eval-command="target remote :1234"
debug-bochs: clean build-debug
dd if=target/os.img of=bochs/os.img bs=512 count=50000 conv=notrunc
bochsdbg -q -f bochs/conf/bochsdbg-gdb.bxrc &
rust-gdb target/x86_64-bootloader/bootloader/boot --eval-command="target remote :1234"