added litespi

Signed-off-by: saji <champ189@umn.edu>
This commit is contained in:
saji 2024-04-19 15:06:31 -05:00
parent 03370cff34
commit 44dd9f79c7
3 changed files with 36 additions and 0 deletions

View file

@ -38,6 +38,7 @@
litedram litedram
liteeth liteeth
litescope litescope
litespi
pythondata-cpu-vexriscv pythondata-cpu-vexriscv
pythondata-software-compiler_rt pythondata-software-compiler_rt
pythondata-software-picolibc pythondata-software-picolibc

View file

@ -8,6 +8,7 @@ in final: prev: {
litedram = python-final.callPackage(import ./litedram.nix tag) { }; litedram = python-final.callPackage(import ./litedram.nix tag) { };
liteeth = python-final.callPackage(import ./liteeth.nix tag) { }; liteeth = python-final.callPackage(import ./liteeth.nix tag) { };
litescope = python-final.callPackage(import ./litescope.nix tag) { }; litescope = python-final.callPackage(import ./litescope.nix tag) { };
litespi = python-final.callPackage(import ./litespi.nix tag) { };
pythondata-cpu-vexriscv = python-final.callPackage(import ./pythondata-cpu-vexriscv.nix tag) { }; pythondata-cpu-vexriscv = python-final.callPackage(import ./pythondata-cpu-vexriscv.nix tag) { };
pythondata-software-compiler_rt = python-final.callPackage(import ./pythondata-software-compiler_rt.nix tag) { }; pythondata-software-compiler_rt = python-final.callPackage(import ./pythondata-software-compiler_rt.nix tag) { };
pythondata-software-picolibc = python-final.callPackage(import ./pythondata-software-picolibc.nix tag) { }; pythondata-software-picolibc = python-final.callPackage(import ./pythondata-software-picolibc.nix tag) { };

34
litex/litespi.nix Normal file
View file

@ -0,0 +1,34 @@
tag: {
pkgs
, lib
, buildPythonPackage
, migen
, setuptools
, litex
}: buildPythonPackage {
pname = "litespi";
version = "${tag}";
src = pkgs.fetchFromGitHub {
owner = "litex-hub";
repo = "litespi";
rev = "${tag}";
hash = "sha256-XYeWokF1IGtZWRK+6jhRSN91MOV5vyh5aO08sbtFBxw=";
};
buildInputs = [
litex
];
propagatedBuildInputs = [
migen
];
nativeCheckInputs = [
];
checkPhase = ''
python -m unittest test
'';
doCheck = true;
}