chore: modules?
This commit is contained in:
parent
ea2f09a44d
commit
52236d2016
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -32,3 +32,4 @@ bochsrc.bxrc
|
||||||
*.efi
|
*.efi
|
||||||
*.EFI
|
*.EFI
|
||||||
*.fd
|
*.fd
|
||||||
|
*.mod
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -26,10 +26,10 @@ LDFLAGS =
|
||||||
|
|
||||||
QEMU_COMMON = \
|
QEMU_COMMON = \
|
||||||
-rtc base=localtime \
|
-rtc base=localtime \
|
||||||
-vga virtio \
|
-vga cirrus \
|
||||||
-serial mon:stdio
|
-serial mon:stdio
|
||||||
|
|
||||||
SUBDIRS := external tools include boot kernel lib bin
|
SUBDIRS := external tools include boot kernel modules lib bin
|
||||||
|
|
||||||
TARGET = stupid.tar.gz floppy1440.img floppy2880.img
|
TARGET = stupid.tar.gz floppy1440.img floppy2880.img
|
||||||
ifneq ($(OS),Windows_NT)
|
ifneq ($(OS),Windows_NT)
|
||||||
|
|
11
modules/Makefile
Normal file
11
modules/Makefile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
TOPGOALS = all clean install
|
||||||
|
|
||||||
|
SUBDIRS = dummy
|
||||||
|
|
||||||
|
.PHONY: $(SUBDIRS)
|
||||||
|
$(SUBDIRS):
|
||||||
|
@echo "📁 boot/$@"
|
||||||
|
@DESTDIR=$(DESTDIR) $(MAKE) -C $@ $(MAKECMDGOALS)
|
||||||
|
|
||||||
|
.PHONY: $(TOPGOALS)
|
||||||
|
$(TOPGOALS): $(SUBDIRS)
|
13
modules/dummy/Makefile
Normal file
13
modules/dummy/Makefile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
MODULE = dummy.mod
|
||||||
|
|
||||||
|
all:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
|
||||||
|
$(MODULE): $(MODULE:.mod=.asm)
|
||||||
|
fasm $^ $@
|
||||||
|
|
||||||
|
.PHONY: install
|
||||||
|
install: $(MODULE)
|
||||||
|
@ mkdir -p $(DESTDIR)
|
||||||
|
install $< $(DESTDIR)
|
2
modules/dummy/dummy.asm
Normal file
2
modules/dummy/dummy.asm
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
format COFF
|
||||||
|
|
Loading…
Reference in a new issue