forked from M-Labs/artiq-zynq
Sebastien Bourdeauducq
ed21457f28
* based on https://github.com/jethrogb/rust-core_io but could not get the packaging scripts to work and the repos is unmaintained anyway, so just copied the result * more features and more up-to-date * compatible with the fatfs crate
21 lines
988 B
Makefile
21 lines
988 B
Makefile
VARIANT := simple
|
|
|
|
all: ../build/firmware/armv7-none-eabihf/release/szl
|
|
|
|
.PHONY: all
|
|
|
|
|
|
../build/pl.rs: zc706.py
|
|
mkdir -p ../build
|
|
python zc706.py -r ../build/pl.rs -V $(VARIANT)
|
|
|
|
../build/firmware/armv7-none-eabihf/release/runtime: .cargo/* armv7-none-eabihf.json Cargo.lock Cargo.toml libdyld/* libdyld/src/* libcoreio/* libcoreio/src/* libcoreio/src/io/* runtime/* runtime/src/* ../build/pl.rs
|
|
XBUILD_SYSROOT_PATH=`pwd`/../build/sysroot cargo xbuild --release -p runtime --target-dir ../build/firmware
|
|
|
|
../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
|
|
|
|
../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
|