summaryrefslogtreecommitdiff
path: root/bootstrap/stage2/Makefile
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2025-10-21 10:09:02 -0500
committerDanny Holman <dholman@gymli.org>2025-10-21 10:09:02 -0500
commit58c65a77bbdfa9b590524e2328b6f76416e91adb (patch)
tree788d005da32995e4dfdf234e22e358f085874ff9 /bootstrap/stage2/Makefile
parentbootstrap: stage1: remove extraneous definition (diff)
downloadbox-58c65a77bbdfa9b590524e2328b6f76416e91adb.tar.gz
box-58c65a77bbdfa9b590524e2328b6f76416e91adb.tar.zst
box-58c65a77bbdfa9b590524e2328b6f76416e91adb.zip
bootstrap: stage2: make the build configs modular
Make the build configuration for the bootloader more modular by breaking out variable updates into multiple makefile includes. These files should (if optional) check against variables in build.conf and update the OBJS list accordingly. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'bootstrap/stage2/Makefile')
-rw-r--r--bootstrap/stage2/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/bootstrap/stage2/Makefile b/bootstrap/stage2/Makefile
index 1799157..fcc64c0 100644
--- a/bootstrap/stage2/Makefile
+++ b/bootstrap/stage2/Makefile
@@ -28,12 +28,14 @@ CFLAGS+=-ffreestanding -fno-stack-protector $(BS_OPLVL)
BINARY=bootstrap-stage2
include $(ARCHDIR)/make.conf
-FIRMWARE_DIR=firmware/$(FIRMWARE)
-include $(FIRMWARE_DIR)/make.conf
-COMMON_DIR=firmware/common
+
+include core/make.conf
+include drivers/make.conf
+include fs/make.conf
OBJS=$(ARCH_OBJS) \
- $(COMMON_OBJS) \
- $(FIRMWARE_OBJS) \
+ $(CORE_OBJS) \
+ $(DRIVER_OBJS) \
+ $(FS_OBJS) \
include $(ROOTDIR)/patterns.mk