aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/errata/thead/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/errata/thead/Makefile')
-rw-r--r--arch/riscv/errata/thead/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/riscv/errata/thead/Makefile b/arch/riscv/errata/thead/Makefile
new file mode 100644
index 000000000000..137e700d9d3f
--- /dev/null
+++ b/arch/riscv/errata/thead/Makefile
@@ -0,0 +1,11 @@
+ifdef CONFIG_RISCV_ALTERNATIVE_EARLY
+CFLAGS_errata.o := -mcmodel=medany
+ifdef CONFIG_FTRACE
+CFLAGS_REMOVE_errata.o = $(CC_FLAGS_FTRACE)
+endif
+ifdef CONFIG_KASAN
+KASAN_SANITIZE_errata.o := n
+endif
+endif
+
+obj-y += errata.o