From 984bb08d277b1869fb872b7ca49804b4a6d59d87 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 5 Aug 2020 19:14:18 +0800 Subject: [PATCH] Makefile: optimize --- src/Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Makefile b/src/Makefile index 1d71e7f6..0256c270 100644 --- a/src/Makefile +++ b/src/Makefile @@ -5,13 +5,9 @@ all: ../build/firmware/armv7-none-eabihf/release/szl .PHONY: all -../build/pl.rs: gateware/* +../build/pl.rs ../build/rustc-cfg: gateware/* mkdir -p ../build - python gateware/zc706.py -r ../build/pl.rs -V $(VARIANT) - -../build/rustc-cfg: gateware/* - mkdir -p ../build - python gateware/zc706.py -c ../build/rustc-cfg -V $(VARIANT) + python gateware/zc706.py -r ../build/pl.rs -c ../build/rustc-cfg -V $(VARIANT) ../build/firmware/armv7-none-eabihf/release/runtime: ../build/pl.rs ../build/rustc-cfg $(shell find . -path ./szl -prune -o -print) XBUILD_SYSROOT_PATH=`pwd`/../build/sysroot cargo xbuild --release -p runtime --target-dir ../build/firmware