build: add bochs rule
This commit is contained in:
parent
3093e6bc82
commit
7c8176688a
2 changed files with 19 additions and 4 deletions
12
.bochsrc
Normal file
12
.bochsrc
Normal file
|
@ -0,0 +1,12 @@
|
|||
cpu: count=1, reset_on_triple_fault=0
|
||||
|
||||
display_library: x, options="gui_debug"
|
||||
|
||||
megs: 512
|
||||
|
||||
clock: sync=realtime, time0=local
|
||||
|
||||
boot: floppy
|
||||
floppya: type=1_44, 1_44="floppy1440.img", status=inserted, write_protected=0
|
||||
|
||||
magic_break: enabled=1
|
11
Makefile
11
Makefile
|
@ -1,4 +1,5 @@
|
|||
.EXPORT_ALL_VARIABLES:
|
||||
.DEFAULT_GOAL:=all
|
||||
|
||||
MAKEFLAGS += --no-print-directory
|
||||
|
||||
|
@ -47,13 +48,11 @@ endif
|
|||
.PHONY: all
|
||||
all: $(TARGET)
|
||||
|
||||
GOAL:=install
|
||||
clean: GOAL:=clean
|
||||
|
||||
.PHONY: $(SUBDIRS)
|
||||
$(SUBDIRS):
|
||||
@echo "📁 $@"
|
||||
@DESTDIR=$(SYSROOTDIR) $(MAKE) -C $@ $(GOAL)
|
||||
@DESTDIR=$(SYSROOTDIR) $(MAKE) -C $@ $(MAKECMDGOALS)
|
||||
|
||||
.PHONY: stupid.iso
|
||||
stupid.iso: $(SUBDIRS)
|
||||
|
@ -86,7 +85,6 @@ floppy2880.img: $(SUBDIRS)
|
|||
mcopy -i $@ boot/loader/stpdldr.sys ::/STPDLDR.SYS
|
||||
mcopy -i $@ kernel/vmstupid.sys ::/VMSTUPID.SYS
|
||||
|
||||
|
||||
OVMF32.fd:
|
||||
wget 'https://retrage.github.io/edk2-nightly/bin/DEBUGIa32_OVMF.fd' -O $@
|
||||
|
||||
|
@ -112,6 +110,11 @@ run-efi: all OVMF32.fd
|
|||
-drive file=fat:rw:./sysroot,if=none,id=hdd \
|
||||
-device ide-hd,drive=hdd
|
||||
|
||||
.PHONY: bochs
|
||||
bochs:
|
||||
bochs -f .bochsrc
|
||||
|
||||
|
||||
.PHONY: docs
|
||||
docs:
|
||||
@mkdir -p docs/html
|
||||
|
|
Loading…
Reference in a new issue