xref: /linux/arch/riscv/errata/Makefile (revision 2bae46e3de2a64fe3a619d61b16da0c01b8df2a1)
1ifdef CONFIG_RELOCATABLE
2# We can't use PIC/PIE when handling early-boot errata parsing, as the kernel
3# doesn't have a GOT setup at that point.  So instead just use medany: it's
4# usually position-independent, so it should be good enough for the errata
5# handling.
6KBUILD_CFLAGS += -fno-pie -mcmodel=medany
7endif
8
9ifdef CONFIG_RISCV_ALTERNATIVE_EARLY
10ifdef CONFIG_FORTIFY_SOURCE
11KBUILD_CFLAGS += -D__NO_FORTIFY
12endif
13endif
14
15obj-$(CONFIG_ERRATA_ANDES) += andes/
16obj-$(CONFIG_ERRATA_SIFIVE) += sifive/
17obj-$(CONFIG_ERRATA_THEAD) += thead/
18