summaryrefslogtreecommitdiff
path: root/kernel/Makefile
diff options
context:
space:
mode:
authorArseney300 <Arseney300@gmail.com>2026-04-23 17:02:05 +0700
committerArseney300 <Arseney300@gmail.com>2026-04-23 17:02:05 +0700
commite935c3afba9b3a492ad804726fa0fd97d437d8f5 (patch)
treec8c26fe36ed4db1ffec4dab5f5bf3b489c064a07 /kernel/Makefile
parent496246c92dabe6757480147016490ea6ae43bb66 (diff)
WIP: add driver objectsWIP/add_driver_obj
Diffstat (limited to 'kernel/Makefile')
-rw-r--r--kernel/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
index 40f081e..c3634e0 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -28,6 +28,10 @@ LIB_SRC := $(wildcard lib/*.cpp)
# ── Firmware subsystems (both compile on all arches; unused one stays dormant) ──
FIRMWARE_SRC := $(wildcard firmware/acpi/*.cpp) $(wildcard firmware/dt/*.cpp)
+# ── Driver framework (always compiled) ─────────────────────────────────────
+# TODO: fix that
+DRV_FRAMEWORK_SRC := $(wildcard drivers/driver_registry.cpp)
+
# ── Conditionally-compiled sources (from .config) ───────────────────────────
# TODO: change it to Driver Makefiles
DRV_SRC :=
@@ -72,7 +76,7 @@ endif
# ── Collect all sources ─────────────────────────────────────────────────────
-ALL_CPP_SRC := $(ARCH_CPP_SRC) $(CORE_SRC) $(MM_SRC) $(FIRMWARE_SRC) $(DRV_SRC) $(FS_SRC) $(LDR_SRC) $(LIB_SRC)
+ALL_CPP_SRC := $(ARCH_CPP_SRC) $(CORE_SRC) $(MM_SRC) $(FIRMWARE_SRC) $(DRV_FRAMEWORK_SRC) $(DRV_SRC) $(FS_SRC) $(LDR_SRC) $(LIB_SRC)
ALL_ASM_SRC := $(ARCH_ASM_SRC)
ALL_CPP_OBJ := $(patsubst %.cpp,%.o,$(ALL_CPP_SRC))