From c645f1eb0ecad2eb1caab34cae171a584dc9c063 Mon Sep 17 00:00:00 2001 From: Eric Norum Date: Fri, 22 Jul 2022 15:58:10 -0700 Subject: [PATCH] Add application support Makefile. --- sup/Makefile | 22 ++++++++++++++++++++++ sup/README.txt | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 sup/Makefile create mode 100644 sup/README.txt diff --git a/sup/Makefile b/sup/Makefile new file mode 100644 index 0000000..0e1879d --- /dev/null +++ b/sup/Makefile @@ -0,0 +1,22 @@ +# adjust the following line to point to your git checkout of bedrock +BEDROCK_BASE ?= $(HOME)/src/Firmware/bedrock +include $(BEDROCK_BASE)/dir_list.mk + +# Possibly common setup / configuration +include $(BUILD_DIR)/top_rules.mk + +MERGED_FILE = badgerMerged.v + +all: $(MERGED_FILE) + +# Packet Badger synthesizable code +RTEFI_CLIENT_LIST = hello.v +include $(BADGER_DIR)/rules.mk + +vpath %.v $(DSP_DIR) $(SERIAL_IO_DIR) + +$(MERGED_FILE): $(RTEFI_V) + iverilog -E -o $@ $^ + +clean: + rm -f $(RTEFI_CLEAN) $(MERGED_FILE) diff --git a/sup/README.txt b/sup/README.txt new file mode 100644 index 0000000..06e363b --- /dev/null +++ b/sup/README.txt @@ -0,0 +1,2 @@ +This Makefile should be copied to an application firmware source directory. +It builds the 'rtefi_blob' required by the bantamweight firmware.