From 7c6f57540ef0f8f3066b1b519c66f4afded48670 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 9 May 2020 13:21:55 +0800 Subject: [PATCH] prevent cargo xbuild from creating sysroot in source tree. Closes #6 --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 2eaebe92..6ab17116 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,11 +8,11 @@ all: ../build/firmware/armv7-none-eabihf/release/szl python zc706.py -r ../build/pl.rs ../build/firmware/armv7-none-eabihf/release/runtime: .cargo/* armv7-none-eabihf.json Cargo.lock Cargo.toml libdyld/* libdyld/src/* runtime/* runtime/src/* ../build/pl.rs - cargo xbuild --release -p runtime --target-dir ../build/firmware + 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 - cargo xbuild --release -p szl --target-dir ../build/firmware + XBUILD_SYSROOT_PATH=`pwd`/../build/sysroot cargo xbuild --release -p szl --target-dir ../build/firmware