diff options
| author | Aurelien Jarno <[email protected]> | 2022-01-28 18:33:46 +0100 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-02-04 10:47:24 +0530 |
| commit | 5d53b55aa77ffeefd4012445dfa6ad3535e1ff2c (patch) | |
| tree | 4bc0fd8cb6c2e4896762945e42abc67a1f7bda8b /lib/utils/timer/aclint_mtimer.c | |
| parent | a26dc609df04ca4704873b683ac03855f20b056e (diff) | |
Makefile: fix build with binutils 2.38
From version 2.38, binutils default to ISA spec version 20191213. This
means that the csr read/write (csrr*/csrw*) instructions and fence.i
instruction has separated from the `I` extension, become two standalone
extensions: Zicsr and Zifencei. As the kernel uses those instruction,
this causes the following build failure:
CC lib/sbi/sbi_tlb.o
<<BUILDDIR>>/lib/sbi/sbi_tlb.c: Assembler messages:
<<BUILDDIR>>/lib/sbi/sbi_tlb.c:190: Error: unrecognized opcode `fence.i'
make: *** [Makefile:431: <<BUILDDIR>>/build/lib/sbi/sbi_tlb.o] Error 1
The fix is to specify those extensions explicitly in -march. However as
older binutils version do not support this, we first need to detect
that.
Signed-off-by: Aurelien Jarno <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Tested-by: Alexandre Ghiti <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/timer/aclint_mtimer.c')
0 files changed, 0 insertions, 0 deletions
