| 1 | ifdef 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. |
| 6 | KBUILD_CFLAGS += -fno-pie -mcmodel=medany |
| 7 | endif |
| 8 | |
| 9 | ifdef CONFIG_RISCV_ALTERNATIVE_EARLY |
| 10 | ifdef CONFIG_FORTIFY_SOURCE |
| 11 | KBUILD_CFLAGS += -D__NO_FORTIFY |
| 12 | endif |
| 13 | endif |
| 14 | |
| 15 | obj-$(CONFIG_ERRATA_ANDES) += andes/ |
| 16 | obj-$(CONFIG_ERRATA_MIPS) += mips/ |
| 17 | obj-$(CONFIG_ERRATA_SIFIVE) += sifive/ |
| 18 | obj-$(CONFIG_ERRATA_THEAD) += thead/ |