xref: /linux/arch/riscv/errata/Makefile (revision cb7e3669c683669d93139184adff68a7d9000536)
18dc2a7e8SAlexandre Ghitiifdef CONFIG_RELOCATABLE
2bb58e157SPalmer Dabbelt# We can't use PIC/PIE when handling early-boot errata parsing, as the kernel
3bb58e157SPalmer Dabbelt# doesn't have a GOT setup at that point.  So instead just use medany: it's
4bb58e157SPalmer Dabbelt# usually position-independent, so it should be good enough for the errata
5bb58e157SPalmer Dabbelt# handling.
6bb58e157SPalmer DabbeltKBUILD_CFLAGS += -fno-pie -mcmodel=medany
78dc2a7e8SAlexandre Ghitiendif
88dc2a7e8SAlexandre Ghiti
9afedc312SAlexandre Ghitiifdef CONFIG_RISCV_ALTERNATIVE_EARLY
10afedc312SAlexandre Ghitiifdef CONFIG_FORTIFY_SOURCE
11afedc312SAlexandre GhitiKBUILD_CFLAGS += -D__NO_FORTIFY
12afedc312SAlexandre Ghitiendif
13afedc312SAlexandre Ghitiendif
14afedc312SAlexandre Ghiti
15e021ae7fSLad Prabhakarobj-$(CONFIG_ERRATA_ANDES) += andes/
16*0b0ca959SDjordje Todorovicobj-$(CONFIG_ERRATA_MIPS) += mips/
171a0e5dbdSVincent Chenobj-$(CONFIG_ERRATA_SIFIVE) += sifive/
18a35707c3SHeiko Stuebnerobj-$(CONFIG_ERRATA_THEAD) += thead/
19