summaryrefslogtreecommitdiff
path: root/kernel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/Makefile')
-rw-r--r--kernel/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
index a5f6741..40f081e 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -11,7 +11,8 @@ include ../config.mk
INCLUDES := \
-Iinclude \
- -I../include
+ -I../include \
+ -Iarch/$(ARCH)
# ── Always-compiled sources ─────────────────────────────────────────────────
@@ -24,6 +25,9 @@ MM_SRC := $(wildcard mm/*.cpp)
LDR_SRC := $(wildcard loader/*.cpp)
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)
+
# ── Conditionally-compiled sources (from .config) ───────────────────────────
# TODO: change it to Driver Makefiles
DRV_SRC :=
@@ -68,7 +72,7 @@ endif
# ── Collect all sources ─────────────────────────────────────────────────────
-ALL_CPP_SRC := $(ARCH_CPP_SRC) $(CORE_SRC) $(MM_SRC) $(DRV_SRC) $(FS_SRC) $(LDR_SRC) $(LIB_SRC)
+ALL_CPP_SRC := $(ARCH_CPP_SRC) $(CORE_SRC) $(MM_SRC) $(FIRMWARE_SRC) $(DRV_SRC) $(FS_SRC) $(LDR_SRC) $(LIB_SRC)
ALL_ASM_SRC := $(ARCH_ASM_SRC)
ALL_CPP_OBJ := $(patsubst %.cpp,%.o,$(ALL_CPP_SRC))