2020-05-14 15:30:50 +08:00
|
|
|
VARIANT := simple
|
|
|
|
|
2020-09-09 17:01:14 +08:00
|
|
|
all: ../build/firmware/armv7-none-eabihf/debug/szl ../build/firmware/armv7-none-eabihf/release/runtime ../build/firmware/armv7-none-eabihf/release/runtime.bin
|
2020-05-01 10:07:38 +08:00
|
|
|
|
2020-05-07 13:52:40 +08:00
|
|
|
.PHONY: all
|
2020-05-01 10:07:38 +08:00
|
|
|
|
|
|
|
|
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-08-05 19:14:18 +08:00
|
|
|
python gateware/zc706.py -r ../build/pl.rs -c ../build/rustc-cfg -V $(VARIANT)
|
2020-08-04 13:15:26 +08:00
|
|
|
|
|
|
|
../build/firmware/armv7-none-eabihf/release/runtime: ../build/pl.rs ../build/rustc-cfg $(shell find . -path ./szl -prune -o -print)
|
2020-05-09 13:21:55 +08:00
|
|
|
XBUILD_SYSROOT_PATH=`pwd`/../build/sysroot cargo xbuild --release -p runtime --target-dir ../build/firmware
|
2020-09-09 17:01:14 +08:00
|
|
|
|
|
|
|
../build/firmware/armv7-none-eabihf/release/runtime.bin: ../build/firmware/armv7-none-eabihf/release/runtime
|
2020-09-01 09:39:21 +08:00
|
|
|
llvm-objcopy -O binary ../build/firmware/armv7-none-eabihf/release/runtime ../build/runtime.bin
|
2020-05-01 10:07:38 +08:00
|
|
|
|
2020-09-06 00:10:44 +08:00
|
|
|
../build/firmware/armv7-none-eabihf/debug/szl: .cargo/* armv7-none-eabihf.json Cargo.lock Cargo.toml szl/* szl/src/*
|
2020-09-01 09:39:21 +08:00
|
|
|
XBUILD_SYSROOT_PATH=`pwd`/../build/sysroot cargo xbuild -p szl --target-dir ../build/firmware
|