projects
/
bootcard
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
that works! maybe final?
[bootcard]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
014f1ca
..
26a0553
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,5
+1,7
@@
bin = bootcard.img
bin = bootcard.img
+QEMU_FLAGS = -soundhw pcspk
+
$(bin): bootcard.asm
nasm -f bin -o $@ $<
$(bin): bootcard.asm
nasm -f bin -o $@ $<
@@
-9,12
+11,20
@@
clean:
.PHONY: run
run: $(bin)
.PHONY: run
run: $(bin)
- qemu-system-i386 -hda $<
+ qemu-system-i386 -hda $< $(QEMU_FLAGS)
.PHONY: debug
debug: $(bin)
.PHONY: debug
debug: $(bin)
- qemu-system-i386 -S -s -hda $<
+ qemu-system-i386 -S -s -hda $< $(QEMU_FLAGS)
.PHONY: disasm
disasm: $(bin)
ndisasm -o 0x7c00 $< >dis
.PHONY: disasm
disasm: $(bin)
ndisasm -o 0x7c00 $< >dis
+
+.PHONY: qr
+qr: bootcard.asm
+ qrencode -o qr.png -r bootcard.asm
+
+.PHONY: install
+install: $(bin)
+ dd if=$(bin) of=/dev/sdd bs=512