forked from M-Labs/nix-scripts
binaries -> board-support
This commit is contained in:
parent
5be4588e7d
commit
6ad2f9f19e
|
@ -55,7 +55,7 @@ in pkgs.python3Packages.buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
installPhase =
|
installPhase =
|
||||||
''
|
''
|
||||||
TARGET_DIR=$out/${pkgs.python3Packages.python.sitePackages}/artiq/binaries/${target}-${variant}
|
TARGET_DIR=$out/${pkgs.python3Packages.python.sitePackages}/artiq/board-support/${target}-${variant}
|
||||||
mkdir -p $TARGET_DIR
|
mkdir -p $TARGET_DIR
|
||||||
cp artiq_${target}/${variant}/gateware/top.bit $TARGET_DIR
|
cp artiq_${target}/${variant}/gateware/top.bit $TARGET_DIR
|
||||||
cp artiq_${target}/${variant}/software/bootloader/bootloader.bin $TARGET_DIR
|
cp artiq_${target}/${variant}/software/bootloader/bootloader.bin $TARGET_DIR
|
||||||
|
|
|
@ -37,9 +37,9 @@ let
|
||||||
cat << EOF > $out/fake-conda/build.sh
|
cat << EOF > $out/fake-conda/build.sh
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
SOC_PREFIX=\$PREFIX/site-packages/artiq/binaries/${target}-${variant}
|
SOC_PREFIX=\$PREFIX/site-packages/artiq/board-support/${target}-${variant}
|
||||||
mkdir -p \$SOC_PREFIX
|
mkdir -p \$SOC_PREFIX
|
||||||
cp ${boardBinaries}/${pkgs.python3Packages.python.sitePackages}/artiq/binaries/${target}-${variant}/* \$SOC_PREFIX
|
cp ${boardBinaries}/${pkgs.python3Packages.python.sitePackages}/artiq/board-support/${target}-${variant}/* \$SOC_PREFIX
|
||||||
EOF
|
EOF
|
||||||
chmod 755 $out/fake-conda/build.sh
|
chmod 755 $out/fake-conda/build.sh
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue