aboutsummaryrefslogtreecommitdiffstats
path: root/picosoc
diff options
context:
space:
mode:
authorClaire Xen <claire@clairexen.net>2021-12-06 16:10:29 +0100
committerGitHub <noreply@github.com>2021-12-06 16:10:29 +0100
commit1d9f5b7678c008fd4ab71d9c742a70ff2365f186 (patch)
tree790399a5de1d58ef79e314a2e641bbd21d2e121a /picosoc
parent6b1397700f0555d5764b936cea1adc01be017108 (diff)
parent2cce6f4e8bb341b002352107215d8e93abda1988 (diff)
downloadpicorv32-1d9f5b7678c008fd4ab71d9c742a70ff2365f186.tar.gz
picorv32-1d9f5b7678c008fd4ab71d9c742a70ff2365f186.zip
Merge pull request #166 from tommythorn/master
Enable the use of 64-bit riscv tools
Diffstat (limited to 'picosoc')
-rw-r--r--picosoc/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/picosoc/Makefile b/picosoc/Makefile
index 2f40df4..9c80745 100644
--- a/picosoc/Makefile
+++ b/picosoc/Makefile
@@ -40,7 +40,7 @@ hx8kdemo_sections.lds: sections.lds
$(CROSS)cpp -P -DHX8KDEMO -o $@ $^
hx8kdemo_fw.elf: hx8kdemo_sections.lds start.s firmware.c
- $(CROSS)gcc $(CFLAGS) -DHX8KDEMO -march=rv32imc -Wl,-Bstatic,-T,hx8kdemo_sections.lds,--strip-debug -ffreestanding -nostdlib -o hx8kdemo_fw.elf start.s firmware.c
+ $(CROSS)gcc $(CFLAGS) -DHX8KDEMO -mabi=ilp32 -march=rv32imc -Wl,--build-id=none,-Bstatic,-T,hx8kdemo_sections.lds,--strip-debug -ffreestanding -nostdlib -o hx8kdemo_fw.elf start.s firmware.c
hx8kdemo_fw.hex: hx8kdemo_fw.elf
$(CROSS)objcopy -O verilog hx8kdemo_fw.elf hx8kdemo_fw.hex
@@ -86,7 +86,7 @@ icebreaker_sections.lds: sections.lds
$(CROSS)cpp -P -DICEBREAKER -o $@ $^
icebreaker_fw.elf: icebreaker_sections.lds start.s firmware.c
- $(CROSS)gcc $(CFLAGS) -DICEBREAKER -march=rv32ic -Wl,-Bstatic,-T,icebreaker_sections.lds,--strip-debug -ffreestanding -nostdlib -o icebreaker_fw.elf start.s firmware.c
+ $(CROSS)gcc $(CFLAGS) -DICEBREAKER -mabi=ilp32 -march=rv32ic -Wl,-Bstatic,-T,icebreaker_sections.lds,--strip-debug -ffreestanding -nostdlib -o icebreaker_fw.elf start.s firmware.c
icebreaker_fw.hex: icebreaker_fw.elf
$(CROSS)objcopy -O verilog icebreaker_fw.elf icebreaker_fw.hex