diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 7f1fa5e..63a0a35 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,5 +1,18 @@ .SILENT: + +############################### +# Feature stuff +############################### +override SPECTRE_MITIGATION = @SPECTRE_MITIGATION@ + +ifeq ($(SPECTRE_MITIGATION), 1) + override SPECTRE_FLAGS=-D__SPECTRE_MITIGATION +else + override SPECTRE_FLAGS= +endif + + ############################### # CFLAGS, QEMU flags + misc ############################### @@ -9,7 +22,8 @@ override PROMPT := printf "%s\t\t%s\n" override KERNEL_DEFINES = -DVEGA_VERSION="\"$(VEGA_VERSION)\""\ -DVEGA_BUILDDATE="\"@VEGA_BUILDDATE@\""\ -DVEGA_BUILDBRANCH="\"@VEGA_BUILDBRANCH@\""\ - -DVEGA_ARCH="\"@ARCH@\"" + -DVEGA_ARCH="\"@ARCH@\""\ + $(SPECTRE_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@ |