1
0
Fork 0
artiq-zynq/src/Makefile

22 lines
742 B
Makefile
Raw Normal View History

2020-11-14 03:17:18 +08:00
TARGET := zc706
2020-05-14 15:30:50 +08:00
VARIANT := simple
all: ../build/firmware/armv7-none-eabihf/release/runtime ../build/runtime.bin
2020-05-07 13:52:40 +08:00
.PHONY: all
2020-08-05 19:14:18 +08:00
../build/pl.rs ../build/rustc-cfg: gateware/*
2020-05-07 13:52:40 +08:00
mkdir -p ../build
2020-11-14 03:17:18 +08:00
python gateware/$(TARGET).py -r ../build/pl.rs -c ../build/rustc-cfg -V $(VARIANT)
2020-10-14 13:06:15 +08:00
../build/firmware/armv7-none-eabihf/release/runtime: ../build/pl.rs ../build/rustc-cfg $(shell find . -print)
2020-11-14 03:17:18 +08:00
cd runtime && \
XBUILD_SYSROOT_PATH=`pwd`/../../build/sysroot \
cargo xbuild --release \
--target-dir ../../build/firmware \
--no-default-features --features=target_$(TARGET)
2020-09-09 17:01:14 +08:00
2020-09-09 18:12:39 +08:00
../build/runtime.bin: ../build/firmware/armv7-none-eabihf/release/runtime
llvm-objcopy -O binary ../build/firmware/armv7-none-eabihf/release/runtime ../build/runtime.bin