2020-05-01 10:07:38 +08:00
|
|
|
Configure Nix channels:
|
2020-05-01 10:09:31 +08:00
|
|
|
|
|
|
|
```shell
|
2020-05-01 10:07:38 +08:00
|
|
|
nix-channel --add https://nixbld.m-labs.hk/channel/custom/artiq/fast-beta/artiq-fast
|
|
|
|
nix-channel --update
|
2020-05-01 10:09:31 +08:00
|
|
|
```
|
2020-05-01 10:07:38 +08:00
|
|
|
|
|
|
|
Pure build with Nix:
|
2020-05-01 10:09:31 +08:00
|
|
|
|
|
|
|
```shell
|
2020-06-10 17:31:46 +08:00
|
|
|
nix-build -A zc706-simple-jtag # or zc706-nist_qc2-jtag or zc706-nist_clock-jtag
|
2020-05-01 10:07:38 +08:00
|
|
|
./remote_run.sh
|
2020-05-01 10:09:31 +08:00
|
|
|
```
|
2020-05-01 10:07:38 +08:00
|
|
|
|
|
|
|
Impure incremental build:
|
2020-05-01 10:09:31 +08:00
|
|
|
|
|
|
|
```shell
|
2020-05-01 10:07:38 +08:00
|
|
|
nix-shell
|
|
|
|
cd src
|
2020-07-11 17:49:54 +08:00
|
|
|
gateware/zc706.py -g ../build/gateware # build gateware
|
|
|
|
make # build firmware
|
2020-05-01 10:07:38 +08:00
|
|
|
cd ..
|
|
|
|
./remote_run.sh -i
|
2020-05-01 10:09:31 +08:00
|
|
|
```
|
2020-05-01 10:07:38 +08:00
|
|
|
|
|
|
|
The impure build process can also be used on non-Nix systems.
|