forked from rarias/nixos-riscv
Add plictool to dump PLIC state
This commit is contained in:
16
overlay.nix
16
overlay.nix
@@ -69,6 +69,22 @@ final: prev:
|
||||
'';
|
||||
};
|
||||
|
||||
plictool = prev.pkgsStatic.stdenv.mkDerivation {
|
||||
name = "plictool";
|
||||
src = ./tools/plictool.c;
|
||||
unpackPhase = ''
|
||||
cp ${./tools/plictool.c} plictool.c
|
||||
'';
|
||||
dontConfigure = true;
|
||||
buildPhase = ''
|
||||
$CC -static plictool.c -o plictool
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp plictool $out/bin/
|
||||
'';
|
||||
};
|
||||
|
||||
bitstreams = builtins.fetchGit {
|
||||
url = "git@bscpm03.bsc.es:rarias/bitstreams.git";
|
||||
rev = "097dad3e888f630ad6ec7e7056ee1b3fcb03400b";
|
||||
|
||||
Reference in New Issue
Block a user