mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-19 00:16:29 +08:00
runtime: reduce the amount of noise during build.
This commit is contained in:
parent
527b1e986c
commit
15ba6f36ba
@ -3,6 +3,15 @@ include $(MISOC_DIRECTORY)/software/common.mak
|
|||||||
|
|
||||||
PYTHON ?= python3.5
|
PYTHON ?= python3.5
|
||||||
|
|
||||||
|
CARGO_normal := env
|
||||||
|
CARGO_quiet = @echo " CARGO " $@ && $(CARGO_normal)
|
||||||
|
|
||||||
|
ifeq ($(V),1)
|
||||||
|
CARGO = $(CARGO_normal)
|
||||||
|
else
|
||||||
|
CARGO = $(CARGO_quiet)
|
||||||
|
endif
|
||||||
|
|
||||||
RUSTOUT := cargo/or1k-unknown-none/debug
|
RUSTOUT := cargo/or1k-unknown-none/debug
|
||||||
RUSTOUT_KSUPPORT := cargo-ksupport/or1k-unknown-none/debug
|
RUSTOUT_KSUPPORT := cargo-ksupport/or1k-unknown-none/debug
|
||||||
|
|
||||||
@ -24,6 +33,7 @@ all: runtime.bin runtime.fbi
|
|||||||
|
|
||||||
.PHONY: $(RUSTOUT)/libruntime.a
|
.PHONY: $(RUSTOUT)/libruntime.a
|
||||||
$(RUSTOUT)/libruntime.a:
|
$(RUSTOUT)/libruntime.a:
|
||||||
|
$(CARGO) \
|
||||||
RUSTFLAGS="-C target-feature=+mul,+div,+ffl1,+cmov,+addc -C opt-level=s -Cpanic=abort" \
|
RUSTFLAGS="-C target-feature=+mul,+div,+ffl1,+cmov,+addc -C opt-level=s -Cpanic=abort" \
|
||||||
CARGO_TARGET_DIR=$(realpath .)/cargo \
|
CARGO_TARGET_DIR=$(realpath .)/cargo \
|
||||||
cargo build --target=or1k-unknown-none \
|
cargo build --target=or1k-unknown-none \
|
||||||
@ -39,6 +49,7 @@ runtime.elf: $(RUSTOUT)/libruntime.a flash_storage.o ksupport_data.o
|
|||||||
|
|
||||||
.PHONY: $(RUSTOUT_KSUPPORT)/libksupport.a
|
.PHONY: $(RUSTOUT_KSUPPORT)/libksupport.a
|
||||||
$(RUSTOUT_KSUPPORT)/libksupport.a:
|
$(RUSTOUT_KSUPPORT)/libksupport.a:
|
||||||
|
$(CARGO) \
|
||||||
RUSTFLAGS="-C target-feature=+mul,+div,+ffl1,+cmov,+addc -C opt-level=s -Cpanic=unwind" \
|
RUSTFLAGS="-C target-feature=+mul,+div,+ffl1,+cmov,+addc -C opt-level=s -Cpanic=unwind" \
|
||||||
CARGO_TARGET_DIR=$(realpath .)/cargo-ksupport \
|
CARGO_TARGET_DIR=$(realpath .)/cargo-ksupport \
|
||||||
cargo build --target=or1k-unknown-none \
|
cargo build --target=or1k-unknown-none \
|
||||||
|
Loading…
Reference in New Issue
Block a user