aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
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@