summaryrefslogtreecommitdiff
path: root/arch/riscv/errata/Makefile
blob: f96ace8ea1df14af272cbeaaa6355f37ffd4cc86 (plain)
1
2
3
4
5
6
7
8
9
10
11
ifdef CONFIG_RELOCATABLE
# We can't use PIC/PIE when handling early-boot errata parsing, as the kernel
# doesn't have a GOT setup at that point.  So instead just use medany: it's
# usually position-independent, so it should be good enough for the errata
# handling.
KBUILD_CFLAGS += -fno-pie -mcmodel=medany
endif

obj-$(CONFIG_ERRATA_ANDES) += andes/
obj-$(CONFIG_ERRATA_SIFIVE) += sifive/
obj-$(CONFIG_ERRATA_THEAD) += thead/