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-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-05-07 13:52:40 +08:00
|
|
|
../build/pl.rs: zc706.py
|
|
|
|
mkdir -p ../build
|
2020-05-14 15:30:50 +08:00
|
|
|
python zc706.py -r ../build/pl.rs -V $(VARIANT)
|
2020-05-01 10:07:38 +08:00
|
|
|
|
2020-06-30 17:27:41 +08:00
|
|
|
../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 libc/* libc/src/* libdwarf/* libdwarf/src/* libunwind/* llvm_libunwind/src/*
|
2020-05-09 13:21:55 +08:00
|
|
|
XBUILD_SYSROOT_PATH=`pwd`/../build/sysroot cargo xbuild --release -p runtime --target-dir ../build/firmware
|
2020-05-01 10:07:38 +08:00
|
|
|
|
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-01 10:07:38 +08:00
|
|
|
|
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
|
2020-05-09 13:21:55 +08:00
|
|
|
XBUILD_SYSROOT_PATH=`pwd`/../build/sysroot cargo xbuild --release -p szl --target-dir ../build/firmware
|