generated from saji/ecp5-template
added litespi
Signed-off-by: saji <champ189@umn.edu>
This commit is contained in:
parent
03370cff34
commit
44dd9f79c7
|
@ -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
|
||||||
|
|
|
@ -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
34
litex/litespi.nix
Normal 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;
|
||||||
|
}
|
Loading…
Reference in a new issue