From dc86d69da4dfc8dd3c5d852ed7b606df83ea736d Mon Sep 17 00:00:00 2001 From: Hansung Kim Date: Mon, 29 Jan 2024 15:40:15 -0800 Subject: [PATCH] Add make fragment --- radiance.mk | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 radiance.mk diff --git a/radiance.mk b/radiance.mk new file mode 100644 index 0000000..40a4932 --- /dev/null +++ b/radiance.mk @@ -0,0 +1,19 @@ +############################################################## +# extra variables/targets ingested by the chipyard make system +############################################################## + +################################################################## +# THE FOLLOWING MUST BE += operators +################################################################## + +RADPIE_SRC_DIR = $(base_dir)/generators/radiance/radpie +RADPIE_BUILD_DIR = $(RADPIE_SRC_DIR)/target/release + +EXTRA_SIM_REQS += radpie +EXTRA_SIM_LDFLAGS += -L$(RADPIE_BUILD_DIR) -Wl,-rpath,$(RADPIE_BUILD_DIR) -lradpie + +# cargo handles building of Rust files all on its own, so make this a PHONY +# target to run cargo unconditionally +.PHONY: radpie +radpie: + cd $(RADPIE_SRC_DIR) && cargo build --release