summaryrefslogtreecommitdiff
path: root/bootstrap/stage2/Makefile
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2025-10-15 19:53:50 -0500
committerDanny Holman <dholman@gymli.org>2025-10-15 19:53:50 -0500
commit5057c439be750f778400953bbd864849521b9fc8 (patch)
treeffea2f6a85af8d62025562c632e389fc3d101e2c /bootstrap/stage2/Makefile
parentbootstrap: stage1: create a baseline environment (diff)
downloadbox-5057c439be750f778400953bbd864849521b9fc8.tar.gz
box-5057c439be750f778400953bbd864849521b9fc8.tar.zst
box-5057c439be750f778400953bbd864849521b9fc8.zip
bootstrap: stage2: create build filesHEADmaster
Create the baseline build files from templates in the project root. Since the second stage is *mostly* standardized, overrides should be kept to a minimum unless a specific architecture/platform requires it. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'bootstrap/stage2/Makefile')
-rw-r--r--bootstrap/stage2/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/bootstrap/stage2/Makefile b/bootstrap/stage2/Makefile
index 2b3951d..1799157 100644
--- a/bootstrap/stage2/Makefile
+++ b/bootstrap/stage2/Makefile
@@ -17,7 +17,7 @@
include $(ROOTDIR)/common.mk
-ifeq (BS_DEBUG,YES)
+ifeq ($(BS_DEBUG),YES)
AFLAGS+=-g
CFLAGS+=-g
endif
@@ -28,7 +28,12 @@ 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
OBJS=$(ARCH_OBJS) \
+ $(COMMON_OBJS) \
+ $(FIRMWARE_OBJS) \
include $(ROOTDIR)/patterns.mk