From 1e7414033389b5abc7d6ca8821752db19704ab5f Mon Sep 17 00:00:00 2001 From: "D. Mitch Bailey" Date: Mon, 8 May 2023 22:50:19 -0700 Subject: [PATCH] Changes for mpw-8 Allow MCW_TAG overrides. Exclude more directories from uncompress/compress target. --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 54921507..67c32f48 100644 --- a/Makefile +++ b/Makefile @@ -31,12 +31,18 @@ SPLIT_FILES := $(shell find . -type f -name "*.$(ARCHIVE_EXT).00.split") SPLIT_FILES_SOURCES := $(basename $(basename $(basename $(SPLIT_FILES)))) # Needed to uncompress the existing archives -ARCHIVES := $(shell find . -type f -not -path "./signoff/*" -not -path "./mgmt_core_wrapper/signoff/*" -name "*.$(ARCHIVE_EXT)") +ARCHIVES := $(shell find . -type f -not -path "*/signoff/*" -name "*.$(ARCHIVE_EXT)") ARCHIVE_SOURCES := $(basename $(ARCHIVES)) # Needed to compress and split files/archives that are too large LARGE_FILES := $(shell find ./gds -type f -name "*.gds") -LARGE_FILES += $(shell find . -type f -size +$(FILE_SIZE_LIMIT_MB)M -not -path "./signoff/*" -not -path "./mgmt_core_wrapper/signoff/*" -not -path "./.git/*" -not -path "./*/.git/*" -not -path "./gds/*" -not -path "./tapeout/outputs/oas/*" -not -path "./openlane/*") +LARGE_FILES += $(shell find . -type f -size +$(FILE_SIZE_LIMIT_MB)M \ + -not -path "*/signoff/*" \ + -not -path "*/.git/*" \ + -not -path "./gds/*" \ + -not -path "./tapeout/outputs/oas/*" \ + -not -path "*/openlane/*" \ + -not -name "*.$(ARCHIVE_EXT)") LARGE_FILES_GZ := $(addsuffix .$(ARCHIVE_EXT), $(LARGE_FILES)) LARGE_FILES_GZ_SPLIT := $(addsuffix .$(ARCHIVE_EXT).00.split, $(LARGE_FILES)) # consider splitting existing archives @@ -57,11 +63,11 @@ MCW_LITE?=1 ifeq ($(MCW),LITEX_VEXRISCV) MCW_NAME := mcw-litex-vexriscv MCW_REPO := https://github.com/efabless/caravel_mgmt_soc_litex - MCW_TAG := $(MPW_TAG) + MCW_TAG ?= $(MPW_TAG) else MCW_NAME := mcw-pico MCW_REPO := https://github.com/efabless/caravel_pico - MCW_TAG := $(MPW_TAG) + MCW_TAG ?= $(MPW_TAG) endif # Install caravel as submodule, (1): submodule, (0): clone