1
0
Fork 0
artiq-zynq/src/Makefile

21 lines
895 B
Makefile
Raw Normal View History

2020-05-14 15:30:50 +08:00
VARIANT := simple
2020-05-07 13:52:40 +08:00
all: ../build/firmware/armv7-none-eabihf/release/szl
2020-05-07 13:52:40 +08:00
.PHONY: all
2020-07-16 11:35:40 +08:00
../build/pl.rs: gateware/*
2020-05-07 13:52:40 +08:00
mkdir -p ../build
2020-07-11 17:49:54 +08:00
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)
XBUILD_SYSROOT_PATH=`pwd`/../build/sysroot cargo xbuild --release -p runtime --target-dir ../build/firmware
2020-05-07 13:52:40 +08:00
../build/szl-payload.bin.lzma: ../build/firmware/armv7-none-eabihf/release/runtime
llvm-objcopy -O binary ../build/firmware/armv7-none-eabihf/release/runtime ../build/szl-payload.bin
lzma --keep -f ../build/szl-payload.bin
2020-05-07 13:52:40 +08:00
../build/firmware/armv7-none-eabihf/release/szl: .cargo/* armv7-none-eabihf.json Cargo.lock Cargo.toml szl/* szl/src/* ../build/szl-payload.bin.lzma
XBUILD_SYSROOT_PATH=`pwd`/../build/sysroot cargo xbuild --release -p szl --target-dir ../build/firmware