summaryrefslogtreecommitdiffhomepage
path: root/Private/makefile
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-04-02 07:04:53 +0200
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-04-02 07:04:53 +0200
commitf0811b1e200293c5ccc387d866d0ad49a41bba17 (patch)
treea31adbc1d14465e08088a98f1b4b8ebd0936db16 /Private/makefile
parentd445096b8403ad0bdbf0095c50f66ba01fde9f33 (diff)
Kernel: New commit, see below.
- Implement FileManager's NewFilesystemManager. - Add ATA-DMA and ATA-PIO APIs. - Add the two raw call (fs_newfs_read_raw, fs_newfs_write_raw) to the NewFS API. - Add kPRDTTransferStatus to tell if PRD is in use. Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/makefile')
-rw-r--r--Private/makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/Private/makefile b/Private/makefile
index a1661bb6..af311d44 100644
--- a/Private/makefile
+++ b/Private/makefile
@@ -8,6 +8,22 @@ LD = x86_64-w64-mingw32-ld
CCFLAGS = -c -ffreestanding -mgeneral-regs-only -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__FSKIT_NEWFS__ -D__KERNEL__ -D__HAVE_MAHROUSS_APIS__ -D__MAHROUSS__ -I../ -I./
ASM = nasm
+ifneq ($(NEWOS_PIO_ATA), )
+DISKDRIVER = -D__ATA_PIO__
+endif
+
+ifneq ($(NEWOS_DMA_ATA), )
+DISKDRIVER = -D__ATA_DMA__
+endif
+
+ifneq ($(NEWOS_AHCI), )
+DISKDRIVER = -D__AHCI__
+endif
+
+ifneq ($(DEBUG), )
+DEBUG = -D__DEBUG__
+endif
+
# Add assembler, linker, and object files variables.
ASMFLAGS = -f win64
LDFLAGS = -e Main --subsystem=17
@@ -27,7 +43,7 @@ MOVEALL=./MoveAll.sh
.PHONY: h-core-amd64-epm
h-core-amd64-epm: clean
- $(CC) $(CCFLAGS) $(DEBUG) $(wildcard Source/*.cxx HALKit/AMD64/Storage/*.cxx) $(wildcard HALKit/AMD64/PCI/*.cxx) $(wildcard Source/Network/*.cxx) $(wildcard Source/Storage/*.cxx) $(wildcard HALKit/AMD64/*.cxx) $(wildcard HALKit/AMD64/*.cpp) $(wildcard HALKit/AMD64/*.s)
+ $(CC) $(CCFLAGS) $(DISKDRIVER) $(DEBUG) $(wildcard Source/*.cxx HALKit/AMD64/Storage/*.cxx) $(wildcard HALKit/AMD64/PCI/*.cxx) $(wildcard Source/Network/*.cxx) $(wildcard Source/Storage/*.cxx) $(wildcard HALKit/AMD64/*.cxx) $(wildcard HALKit/AMD64/*.cpp) $(wildcard HALKit/AMD64/*.s)
$(ASM) $(ASMFLAGS) HALKit/AMD64/HalInterruptAPI.asm
$(ASM) $(ASMFLAGS) HALKit/AMD64/HalSMPCoreManager.asm
$(ASM) $(ASMFLAGS) HALKit/AMD64/HalNewBoot.asm
@@ -49,8 +65,8 @@ all: h-core-amd64-epm link-amd64-epm
help:
@echo "=== HELP ==="
@echo "all: Build kernel and link it."
- @echo "link-amd64-epm: Link kernel. (PC AMD64)"
- @echo "h-core-amd64-epm: Build kernel. (PC AMD64)"
+ @echo "link-amd64-epm: Link kernel. (EPM AMD64)"
+ @echo "h-core-amd64-epm: Build kernel. (EPM AMD64)"
.PHONY: clean
clean: