1
0
Fork 0

Makefile: optimize

This commit is contained in:
Sebastien Bourdeauducq 2020-08-05 19:14:18 +08:00
parent de2d7ecf48
commit 984bb08d27
1 changed files with 2 additions and 6 deletions

View File

@ -5,13 +5,9 @@ all: ../build/firmware/armv7-none-eabihf/release/szl
.PHONY: all .PHONY: all
../build/pl.rs: gateware/* ../build/pl.rs ../build/rustc-cfg: gateware/*
mkdir -p ../build mkdir -p ../build
python gateware/zc706.py -r ../build/pl.rs -V $(VARIANT) python gateware/zc706.py -r ../build/pl.rs -c ../build/rustc-cfg -V $(VARIANT)
../build/rustc-cfg: gateware/*
mkdir -p ../build
python gateware/zc706.py -c ../build/rustc-cfg -V $(VARIANT)
../build/firmware/armv7-none-eabihf/release/runtime: ../build/pl.rs ../build/rustc-cfg $(shell find . -path ./szl -prune -o -print) ../build/firmware/armv7-none-eabihf/release/runtime: ../build/pl.rs ../build/rustc-cfg $(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