diff options
author | Lad Prabhakar <[email protected]> | 2023-09-25 16:38:44 +0100 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2023-09-27 07:02:48 -0700 |
commit | 5abb5c3cd4b38ec32c38a852c83ea04255cecf25 (patch) | |
tree | 63097966a011fe259d850d8feb8e45a3e17b51ee | |
parent | 9f564b92cf6d0ecb398f9348600a7d8a7f8ea804 (diff) |
riscv: errata: andes: Makefile: Fix randconfig build issue
Compile the andes errata with cflags set to " -mcmodel=medany"
when CONFIG_RISCV_ALTERNATIVE_EARLY is enabled.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Lad Prabhakar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
-rw-r--r-- | arch/riscv/errata/andes/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/riscv/errata/andes/Makefile b/arch/riscv/errata/andes/Makefile index 2d644e19caef..6278c389b801 100644 --- a/arch/riscv/errata/andes/Makefile +++ b/arch/riscv/errata/andes/Makefile @@ -1 +1,5 @@ +ifdef CONFIG_RISCV_ALTERNATIVE_EARLY +CFLAGS_errata.o := -mcmodel=medany +endif + obj-y += errata.o |