summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2026-02-24 08:13:48 +0100
committerCarlos Maiolino <[email protected]>2026-02-24 20:24:57 +0100
commitc96b289dc49c18ac36fb7e13242e5f855a56840e (patch)
tree01235198a6b4148e3bd00b1dd03aa69e6dd76afd /Makefile
parentdae0a3cbf6dba6fc537f943362021f4d8ffcd859 (diff)
Add ata driver
Enable the kernel to read from an ATA device Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8bebd54..365b7b9 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,7 @@ KOBJ_FILES = $(KERNEL_ASM_OBJ) \
./build/mm/kernel_heap.o \
./build/mm/paging.asm.o \
./build/mm/paging.o \
+ ./build/drivers/ata.o
BOOT_TGT =./bin/boot.bin
@@ -79,6 +80,10 @@ $(BUILD_DIR)/mm/paging.asm.o: ./src/mm/paging.asm
$(BUILD_DIR)/mm/paging.o: ./src/mm/paging.c
i686-elf-gcc $(INCLUDES) $(FLAGS) -std=gnu99 -c ./src/mm/paging.c -o $(BUILD_DIR)/mm/paging.o
+
+$(BUILD_DIR)/drivers/ata.o: ./src/drivers/ata.c
+ i686-elf-gcc $(INCLUDES) $(FLAGS) -std=gnu99 -c ./src/drivers/ata.c -o $(BUILD_DIR)/drivers/ata.o
+
clean:
rm -f $(BOOT_TGT)
rm -f bin/kernel.bin
@@ -91,4 +96,5 @@ clean:
rm -f build/idt/idt.o
rm -f build/io/io.asm.o
rm -f build/mm/*.o
+ rm -f build/drivers/*.o
rm -f bin/os.bin