xref: /linux-6.15/arch/riscv/errata/Makefile (revision bb58e157)
18dc2a7e8SAlexandre Ghitiifdef CONFIG_RELOCATABLE
2*bb58e157SPalmer Dabbelt# We can't use PIC/PIE when handling early-boot errata parsing, as the kernel
3*bb58e157SPalmer Dabbelt# doesn't have a GOT setup at that point.  So instead just use medany: it's
4*bb58e157SPalmer Dabbelt# usually position-independent, so it should be good enough for the errata
5*bb58e157SPalmer Dabbelt# handling.
6*bb58e157SPalmer 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/
161a0e5dbdSVincent Chenobj-$(CONFIG_ERRATA_SIFIVE) += sifive/
17a35707c3SHeiko Stuebnerobj-$(CONFIG_ERRATA_THEAD) += thead/
18