Make Libre-SoC almost work

This commit is contained in:
Las Safin 2021-09-05 17:47:17 +00:00
parent 4f6f668b74
commit 41274d6ab5
No known key found for this signature in database
GPG Key ID: E7FA928911B61ED6
1 changed files with 9 additions and 3 deletions

View File

@ -7,12 +7,11 @@ let
fakegit = writeShellScriptBin "git" "exit 0"; fakegit = writeShellScriptBin "git" "exit 0";
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
name = "libresoc-check"; name = "libresoc-check";
src = soclayout; src = soclayout;
YOSYS_TOP = "${yosys}"; YOSYS_TOP = "${yosys}";
ALLIANCE_TOP = "${alliance}"; ALLIANCE_TOP = "${alliance}";
ALLIANCE_TOOLKIT = "${alliance-check-toolkit}";
CHECK_TOOLKIT = ALLIANCE_TOOLKIT;
CORIOLIS_TOP = "${coriolis-combined}"; CORIOLIS_TOP = "${coriolis-combined}";
# The user configuration for verhaegs is empty, # The user configuration for verhaegs is empty,
# which is why we use it. # which is why we use it.
@ -22,7 +21,14 @@ in stdenv.mkDerivation rec {
prePatch = '' prePatch = ''
rmdir pinmux rmdir pinmux
ln -s ${pinmux} pinmux cp -r ${pinmux} -T pinmux
cp -r ${alliance-check-toolkit} -T alliance-check-toolkit
chmod a+w -R alliance-check-toolkit pinmux
export ALLIANCE_TOOLKIT="$PWD/alliance-check-toolkit"
export CHECK_TOOLKIT="$ALLIANCE_TOOLKIT"
''; '';
postPatch = "patchShebangs ."; postPatch = "patchShebangs .";