]> git.dujemihanovic.xyz Git - nameless-os.git/commit
Complete build system rehaul
authorDuje Mihanović <duje.mihanovic@skole.hr>
Tue, 28 Jun 2022 10:39:28 +0000 (12:39 +0200)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Tue, 28 Jun 2022 10:47:06 +0000 (12:47 +0200)
commitbdad753bd8125abc67a24b5d8030fa9cfb8706db
treeecb837d5e162699fd8916d14cec6cbf05615ebcc
parentf206380199304913806807b69c28abb4fa965ab8
Complete build system rehaul

Inspired by Linux, the top Makefile is more recursive and practically every
directory has its own sub-Makefile which builds or includes only code inside its
directory. This new system works beautifully with -B and parallel jobs, while
the previous one would in either case build the bootloader multiple times (and,
in the case of parallel jobs, cause weird sporadic build errors).
14 files changed:
Makefile
boot/x86/Makefile
boot/x86/stage3/Makefile [new file with mode: 0644]
boot/x86/stage3/elf.c
boot/x86/stage3/paging.c
boot/x86/stage3/prekernel.c
boot/x86/stage3/stage3.ld
kernel/Makefile [new file with mode: 0644]
kernel/arch/x86/Makefile [new file with mode: 0644]
kernel/arch/x86/irq/Makefile [new file with mode: 0644]
kernel/arch/x86/tty/Makefile [new file with mode: 0644]
kernel/drivers/Makefile [new file with mode: 0644]
kernel/drivers/irq/Makefile [new file with mode: 0644]
kernel/linker.ld