]> git.lizzy.rs Git - loadnothing.git/commitdiff
Fix Makefile dirty case
authorElias Fleckenstein <eliasfleckenstein@web.de>
Wed, 21 Sep 2022 18:34:46 +0000 (20:34 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Wed, 21 Sep 2022 18:34:46 +0000 (20:34 +0200)
Makefile
README.md

index 2a6c1d414f3e0e8a04b24df81cf2ec4ae9ffca68..b03459f1dfd4ca0c286d455180fe79336c66814c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 default_target: vm
 .PHONY: vm clean
 
-stage1/boot.bin: stage1/boot.asm
+stage1/boot.bin: stage1/boot.asm stage2/target/x86-loadnothing/release/stage2
        nasm -DSTAGE2SIZE=$$(du -b stage2/target/x86-loadnothing/release/stage2 | cut -f1) -f bin -o stage1/boot.bin stage1/boot.asm
 
 stage2/target/x86-loadnothing/release/stage2: stage2/src/main.rs stage2/src/vga.rs
@@ -17,5 +17,5 @@ vm: nothing.img
        qemu-system-x86_64 -drive format=raw,file=nothing.img
 
 clean:
-       rm -f magic.bin stage1/boot.bin nothing.img
+       rm -f stage1/boot.bin nothing.img
        cd stage2 && cargo clean
index 384feebe4524d5284d72b85ad0fb03c96b83f7fb..479aa4eb76217dbd0cd459717f2387c359986d01 100644 (file)
--- a/README.md
+++ b/README.md
@@ -40,8 +40,3 @@ of your choice (but only if you've built it). It is exactly 32 MiB in size.
 to the wrong device.**
 
 You can then boot from the device. It should once again print "Hello Stage2!".
-
-# Developing
-It is highly recommended to run `make clean vm`.
-It takes longer to complete but is sometimes necessary
-to fully apply your changes.