Parcourir la source

add riscv32i target

Sebastien Bourdeauducq il y a 5 ans
Parent
commit
b53e0a5cd2
2 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      assemble.sh
  2. BIN
      bin/riscv32i-unknown-none-elf.a

+ 3 - 0
assemble.sh

@@ -7,6 +7,9 @@ crate=riscv
 # remove existing blobs because otherwise this will append object files to the old blobs
 rm -f bin/*.a
 
+riscv64-unknown-elf-gcc -c -mabi=ilp32 -march=rv32i asm.S -o bin/$crate.o
+ar crs bin/riscv32i-unknown-none-elf.a bin/$crate.o
+
 riscv64-unknown-elf-gcc -c -mabi=ilp32 -march=rv32imc asm.S -o bin/$crate.o
 ar crs bin/riscv32imac-unknown-none-elf.a bin/$crate.o
 ar crs bin/riscv32imc-unknown-none-elf.a bin/$crate.o

BIN
bin/riscv32i-unknown-none-elf.a