Add flake #4

Merged
Yehowshua merged 10 commits from Artturin/RiscV-Formal:addnix into main 2025-03-14 15:55:41 +00:00
2 changed files with 8 additions and 5 deletions
Showing only changes of commit 0960ceb53a - Show all commits

View file

@ -62,6 +62,9 @@
riscv64-linux.binutils riscv64-linux.binutils
riscv64-linux.glibc riscv64-linux.glibc
]; ];
shellHook = ''
export CROSS_PREFIX="riscv64-none-elf"
'';
}; };
} }
) { }; ) { };

View file

@ -1,9 +1,9 @@
# RISC-V toolchain # RISC-V toolchain
PREFIX = riscv64-unknown-elf CROSS_PREFIX ?= riscv64-unknown-elf
CC = $(PREFIX)-gcc CC = $(CROSS_PREFIX)-gcc
AS = $(PREFIX)-as AS = $(CROSS_PREFIX)-as
LD = $(PREFIX)-ld LD = $(CROSS_PREFIX)-ld
OBJCOPY = $(PREFIX)-objcopy OBJCOPY = $(CROSS_PREFIX)-objcopy
QEMU = qemu-system-riscv64 QEMU = qemu-system-riscv64
# Compilation flags # Compilation flags