Makefile 538 B

1234567891011121314151617
  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. ifdef CONFIG_RISCV_ALTERNATIVE_EARLY
  9. ifdef CONFIG_FORTIFY_SOURCE
  10. KBUILD_CFLAGS += -D__NO_FORTIFY
  11. endif
  12. endif
  13. obj-$(CONFIG_ERRATA_ANDES) += andes/
  14. obj-$(CONFIG_ERRATA_SIFIVE) += sifive/
  15. obj-$(CONFIG_ERRATA_THEAD) += thead/