kv2: initialize memory manager, early pci devices
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
parent
e5b55a6ba5
commit
a252a3f8e9
58 changed files with 1270 additions and 505 deletions
14
Makefile
14
Makefile
|
|
@ -7,7 +7,7 @@ endif
|
|||
ARCH := x86_64
|
||||
LIMINE_VERSION=v11.2.0
|
||||
KERNEL := kernel.elf
|
||||
IMG := boot.iso
|
||||
IMG := boot.hdd
|
||||
|
||||
HOST_CC := gcc
|
||||
HOST_CFLAGS := -O2 -pipe
|
||||
|
|
@ -47,7 +47,7 @@ LDFLAGS := \
|
|||
-z max-page-size=0x1000 \
|
||||
-no-pie \
|
||||
|
||||
KDIRS := mem/ lib/ drivers/ kernel/ init/
|
||||
KDIRS := mem/ lib/ drivers/ kernel/ init/ fs/
|
||||
|
||||
ifeq ($(ARCH),x86_64)
|
||||
CFLAGS += -Iamd64/include
|
||||
|
|
@ -65,6 +65,7 @@ export V
|
|||
export obj-y
|
||||
export CC
|
||||
export LD
|
||||
export QEMUFLAGS
|
||||
export CFLAGS
|
||||
export LDFLAGS
|
||||
|
||||
|
|
@ -80,19 +81,20 @@ all: $(KERNEL)
|
|||
__build_all:
|
||||
$(Q)$(MAKE) --no-print-directory -f scripts/Makefile.build _all obj=.
|
||||
|
||||
$(KERNEL): __build_all linker.ld
|
||||
$(KOBJ): __build_all
|
||||
|
||||
$(KERNEL): $(KOBJ) linker.ld
|
||||
$(Q)echo " LD $@"
|
||||
$(Q)$(LD) $(KOBJ) $(LDFLAGS) -T linker.ld -o $@
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(Q)$(MAKE) -f scripts/Makefile.build _clean obj=.
|
||||
$(Q)echo " CLEAN ."
|
||||
$(Q)rm -rf $(IMG)
|
||||
$(Q)rm -rf iso_root
|
||||
$(Q)rm -rf os_root
|
||||
$(q)rm -rf edk2-ovmf
|
||||
$()rm -rf os_root.img
|
||||
$(Q)rm -rf edk2-ovmf
|
||||
$(Q)rm -rf os_root.img
|
||||
|
||||
print-%:
|
||||
$(Q)echo $($(*))
|
||||
|
|
|
|||
Loading…
Reference in a new issue