summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-01-17 20:59:53 -0500
committerIan Moffett <ian@osmora.org>2024-01-17 20:59:53 -0500
commit469f601e210a74bb08408be894c9ec84701d6715 (patch)
tree41e8b517fceddbf581ac2333a82bb39f21899647 /Makefile.in
parent09f3fd474c0175170c177cdcb372034eda86c70f (diff)
kernel: Add serial logging support
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index b00c05d..63120db 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -5,6 +5,7 @@
# Feature stuff
###############################
override SPECTRE_MITIGATION = @SPECTRE_MITIGATION@
+override SERIAL_DEBUG = @SERIAL_DEBUG@
ifeq ($(SPECTRE_MITIGATION), 1)
override SPECTRE_FLAGS=-D__SPECTRE_MITIGATION
@@ -12,6 +13,12 @@ else
override SPECTRE_FLAGS=
endif
+ifeq ($(SERIAL_DEBUG), 1)
+ override SERIAL_DEBUG_FLAGS=-D__SERIAL_DEBUG
+else
+ override SERIAL_DEBUG_FLAGS=
+endif
+
###############################
# CFLAGS, QEMU flags + misc
@@ -23,7 +30,8 @@ override KERNEL_DEFINES = -DHYRA_VERSION="\"$(HYRA_VERSION)\""\
-DHYRA_BUILDDATE="\"@HYRA_BUILDDATE@\""\
-DHYRA_BUILDBRANCH="\"@HYRA_BUILDBRANCH@\""\
-DHYRA_ARCH="\"@ARCH@\""\
- $(SPECTRE_FLAGS)
+ $(SPECTRE_FLAGS)\
+ $(SERIAL_DEBUG_FLAGS)
override KERNEL_CFLAGS = @KERNEL_CFLAGS@ $(KERNEL_DEFINES)
override KERNEL_LDFLAGS = -nostdlib -zmax-page-size=0x1000 -static -Tconf/link-$(ARCH).ld
override QEMU_FLAGS = @QEMU_FLAGS@