create gateware folder

This commit is contained in:
Sebastien Bourdeauducq 2020-07-11 17:49:54 +08:00
parent 7aec419ed6
commit e3ff21b1b5
4 changed files with 5 additions and 5 deletions

View File

@ -17,8 +17,8 @@ Impure incremental build:
```shell ```shell
nix-shell nix-shell
cd src cd src
./zc706.py -g ../build/gateware # build gateware gateware/zc706.py -g ../build/gateware # build gateware
make # build firmware make # build firmware
cd .. cd ..
./remote_run.sh -i ./remote_run.sh -i
``` ```

View File

@ -48,7 +48,7 @@ let
]; ];
} }
'' ''
python ${./src/zc706.py} -g build -V ${variant} python ${./src/gateware/zc706.py} -g build -V ${variant}
mkdir -p $out $out/nix-support mkdir -p $out $out/nix-support
cp build/top.bit $out cp build/top.bit $out
echo file binary-dist $out/top.bit >> $out/nix-support/hydra-build-products echo file binary-dist $out/top.bit >> $out/nix-support/hydra-build-products

View File

@ -5,9 +5,9 @@ all: ../build/firmware/armv7-none-eabihf/release/szl
.PHONY: all .PHONY: all
../build/pl.rs: zc706.py ../build/pl.rs: gateware/zc706.py
mkdir -p ../build mkdir -p ../build
python zc706.py -r ../build/pl.rs -V $(VARIANT) python gateware/zc706.py -r ../build/pl.rs -V $(VARIANT)
../build/firmware/armv7-none-eabihf/release/runtime: ../build/pl.rs $(shell find . -path ./szl -prune -o -print) ../build/firmware/armv7-none-eabihf/release/runtime: ../build/pl.rs $(shell find . -path ./szl -prune -o -print)
XBUILD_SYSROOT_PATH=`pwd`/../build/sysroot cargo xbuild --release -p runtime --target-dir ../build/firmware XBUILD_SYSROOT_PATH=`pwd`/../build/sysroot cargo xbuild --release -p runtime --target-dir ../build/firmware