diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2022-01-28 20:33:46 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-02-04 08:17:24 +0300 |
commit | 5d53b55aa77ffeefd4012445dfa6ad3535e1ff2c (patch) | |
tree | 4bc0fd8cb6c2e4896762945e42abc67a1f7bda8b /lib/sbi/sbi_bitops.c | |
parent | a26dc609df04ca4704873b683ac03855f20b056e (diff) | |
download | opensbi-5d53b55aa77ffeefd4012445dfa6ad3535e1ff2c.tar.xz |
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 <aurelien@aurel32.net>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/sbi/sbi_bitops.c')
0 files changed, 0 insertions, 0 deletions