mirror of https://github.com/YosysHQ/picorv32.git
Fix scripts/torture gcc calls
This commit is contained in:
parent
c9de8001fe
commit
2bc93eb8d0
|
@ -58,7 +58,7 @@ tests/test_$(1).S: tests/generated.ok
|
||||||
touch tests/test_$(1).S
|
touch tests/test_$(1).S
|
||||||
|
|
||||||
tests/test_$(1).elf: tests/test_$(1).S
|
tests/test_$(1).elf: tests/test_$(1).S
|
||||||
riscv32-unknown-elf-gcc -m32 `sed '/march=/ ! d; s,^// ,-,;' config.vh` -ffreestanding -nostdlib \
|
riscv32-unknown-elf-gcc `sed '/march=/ ! d; s,^// ,-,; y/RVIMC/rvimc/;' config.vh` -ffreestanding -nostdlib \
|
||||||
-Wl,-Bstatic,-T,sections.lds -I. -o tests/test_$(1).elf tests/test_$(1).S
|
-Wl,-Bstatic,-T,sections.lds -I. -o tests/test_$(1).elf tests/test_$(1).S
|
||||||
|
|
||||||
tests/test_$(1).bin: tests/test_$(1).elf
|
tests/test_$(1).bin: tests/test_$(1).elf
|
||||||
|
|
|
@ -19,7 +19,7 @@ fi
|
||||||
|
|
||||||
## Compile test case and create reference
|
## Compile test case and create reference
|
||||||
|
|
||||||
riscv32-unknown-elf-gcc -m32 `sed '/march=/ ! d; s,^// ,-,;' config.vh` -ffreestanding -nostdlib -Wl,-Bstatic,-T,sections.lds -o test.elf test.S
|
riscv32-unknown-elf-gcc `sed '/march=/ ! d; s,^// ,-,; y/RVIMC/rvimc/;' config.vh` -ffreestanding -nostdlib -Wl,-Bstatic,-T,sections.lds -o test.elf test.S
|
||||||
LD_LIBRARY_PATH="./riscv-isa-sim:./riscv-fesvr" ./riscv-isa-sim/spike test.elf > test.ref
|
LD_LIBRARY_PATH="./riscv-isa-sim:./riscv-fesvr" ./riscv-isa-sim/spike test.elf > test.ref
|
||||||
riscv32-unknown-elf-objcopy -O binary test.elf test.bin
|
riscv32-unknown-elf-objcopy -O binary test.elf test.bin
|
||||||
python3 ../../firmware/makehex.py test.bin 4096 > test.hex
|
python3 ../../firmware/makehex.py test.bin 4096 > test.hex
|
||||||
|
|
Loading…
Reference in New Issue