Add sources

This commit is contained in:
Nikolay Puzanov
2023-06-11 16:15:40 +03:00
parent 82f90610fb
commit 686d12bf81
48 changed files with 23261 additions and 0 deletions

16
source/firmware/shell.nix Normal file
View File

@@ -0,0 +1,16 @@
{ nixpkgs ? import <nixpkgs> {} }:
let cross-rv5 = import <nixpkgs> {
crossSystem = {
config = "riscv32-none-elf";
gcc = { arch = "rv32i"; abi = "ilp32"; };
libc = "newlib";
};
};
in
cross-rv5.mkShell {
nativeBuildInputs = [ nixpkgs.gnumake nixpkgs.guile_3_0 ];
shellHook = ''
export NIX_SHELL_NAME="riscv"
'';
}