Skip to content

Commit 7c5ea02

Browse files
authored
Merge pull request #1249 from ucb-bar/misc-fixes
Misc release cleanup
2 parents 472c4cb + 781cea2 commit 7c5ea02

12 files changed

+817
-840
lines changed

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
conda-requirements-esp-tools-linux-64.conda-lock.yml linguist-generated=true
2-
conda-requirements-riscv-tools-linux-64.conda-lock.yml linguist-generated=true
1+
conda-reqs/conda-lock-reqs/conda-requirements-esp-tools-linux-64.conda-lock.yml linguist-generated=true
2+
conda-reqs/conda-lock-reqs/conda-requirements-riscv-tools-linux-64.conda-lock.yml linguist-generated=true

.github/actions/create-conda-env/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ runs:
1616
else
1717
echo "Creating a conda environment for each toolchain with the toolchain installed"
1818
conda activate base
19-
conda-lock install -n ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-riscv-tools ./conda-requirements-riscv-tools-linux-64.conda-lock.yml
20-
conda-lock install -n ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-esp-tools ./conda-requirements-esp-tools-linux-64.conda-lock.yml
19+
conda-lock install -n ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-riscv-tools ./conda-reqs/conda-lock-reqs/conda-requirements-riscv-tools-linux-64.conda-lock.yml
20+
conda-lock install -n ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-esp-tools ./conda-reqs/conda-lock-reqs/conda-requirements-esp-tools-linux-64.conda-lock.yml
2121
conda deactivate
2222
2323
if [[ "${{ inputs.install-collateral }}" == 'true' ]]; then

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ target
1313
.idea
1414
.DS_Store
1515
env.sh
16-
riscv-tools-install
17-
esp-tools-install
1816
tags
1917
*~
20-
env-riscv-tools.sh
21-
env-esp-tools.sh
2218
.bsp/
2319
.conda-env/
24-
.#*
20+
.#*

build-setup.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ done
6262

6363
if [ "$SKIP_CONDA" = false ]; then
6464
# note: lock file must end in .conda-lock.yml - see https://github.com/conda-incubator/conda-lock/issues/154
65-
LOCKFILE=$RDIR/conda-requirements-$TOOLCHAIN-linux-64.conda-lock.yml
66-
YAMLFILE=$RDIR/conda-requirements-$TOOLCHAIN.yaml
65+
CONDA_REQS=$RDIR/conda-reqs
66+
CONDA_LOCK_REQS=$CONDA_REQS/conda-lock-reqs
67+
LOCKFILE=$CONDA_LOCK_REQS/conda-requirements-$TOOLCHAIN-linux-64.conda-lock.yml
6768

6869
if [ "$USE_PINNED_DEPS" = false ]; then
6970
# auto-gen the lockfile
70-
conda-lock -f $YAMLFILE -p linux-64 --lockfile $LOCKFILE
71+
conda-lock -f $CONDA_REQS/chipyard.yaml -f $CONDA_REQS/$TOOLCHAIN.yaml --lockfile $LOCKFILE
7172
fi
7273

7374
# use conda-lock to create env

common.mk

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
SHELL=/bin/bash
55

66
ifndef RISCV
7-
$(error RISCV is unset. You must set RISCV yourself, or through the Chipyard auto-generated env file)
7+
$(error RISCV is unset. Did you source the Chipyard auto-generated env file (which activates the default conda environment)?)
88
else
99
$(info Running with RISCV=$(RISCV))
1010
endif
@@ -101,12 +101,8 @@ $(BOOTROM_TARGETS): $(build_dir)/bootrom.%.img: $(TESTCHIP_RSRCS_DIR)/testchipip
101101
#########################################################################################
102102
# create firrtl file rule and variables
103103
#########################################################################################
104-
.INTERMEDIATE: generator_temp
105-
$(FIRRTL_FILE) $(ANNO_FILE): generator_temp
106-
@echo "" > /dev/null
107-
108104
# AG: must re-elaborate if cva6 sources have changed... otherwise just run firrtl compile
109-
generator_temp: $(SCALA_SOURCES) $(sim_files) $(SCALA_BUILDTOOL_DEPS) $(EXTRA_GENERATOR_REQS)
105+
$(FIRRTL_FILE) $(ANNO_FILE) &: $(SCALA_SOURCES) $(sim_files) $(SCALA_BUILDTOOL_DEPS) $(EXTRA_GENERATOR_REQS)
110106
mkdir -p $(build_dir)
111107
$(call run_scala_main,$(SBT_PROJECT),$(GENERATOR_PACKAGE).Generator,\
112108
--target-dir $(build_dir) \
@@ -128,12 +124,7 @@ TOP_TARGETS = $(TOP_FILE) $(TOP_SMEMS_CONF) $(TOP_ANNO) $(TOP_FIR) $(sim_top_bla
128124
HARNESS_TARGETS = $(HARNESS_FILE) $(HARNESS_SMEMS_CONF) $(HARNESS_ANNO) $(HARNESS_FIR) $(sim_harness_blackboxes)
129125

130126
# DOC include start: FirrtlCompiler
131-
# NOTE: These *_temp intermediate targets will get removed in favor of make 4.3 grouped targets (&: operator)
132-
.INTERMEDIATE: firrtl_temp
133-
$(TOP_TARGETS) $(HARNESS_TARGETS): firrtl_temp
134-
@echo "" > /dev/null
135-
136-
firrtl_temp: $(FIRRTL_FILE) $(ANNO_FILE) $(VLOG_SOURCES)
127+
$(TOP_TARGETS) $(HARNESS_TARGETS) &: $(FIRRTL_FILE) $(ANNO_FILE) $(VLOG_SOURCES)
137128
$(call run_scala_main,tapeout,barstools.tapeout.transforms.GenerateTopAndHarness,\
138129
--allow-unrecognized-annotations \
139130
--output-file $(TOP_FILE) \
@@ -158,19 +149,11 @@ firrtl_temp: $(FIRRTL_FILE) $(ANNO_FILE) $(VLOG_SOURCES)
158149

159150
# This file is for simulation only. VLSI flows should replace this file with one containing hard SRAMs
160151
MACROCOMPILER_MODE ?= --mode synflops
161-
.INTERMEDIATE: top_macro_temp
162-
$(TOP_SMEMS_FILE) $(TOP_SMEMS_FIR): top_macro_temp
163-
@echo "" > /dev/null
164-
165-
top_macro_temp: $(TOP_SMEMS_CONF)
152+
$(TOP_SMEMS_FILE) $(TOP_SMEMS_FIR) &: $(TOP_SMEMS_CONF)
166153
$(call run_scala_main,tapeout,barstools.macros.MacroCompiler,-n $(TOP_SMEMS_CONF) -v $(TOP_SMEMS_FILE) -f $(TOP_SMEMS_FIR) $(MACROCOMPILER_MODE))
167154

168155
HARNESS_MACROCOMPILER_MODE = --mode synflops
169-
.INTERMEDIATE: harness_macro_temp
170-
$(HARNESS_SMEMS_FILE) $(HARNESS_SMEMS_FIR): harness_macro_temp
171-
@echo "" > /dev/null
172-
173-
harness_macro_temp: $(HARNESS_SMEMS_CONF) | top_macro_temp
156+
$(HARNESS_SMEMS_FILE) $(HARNESS_SMEMS_FIR) &: $(HARNESS_SMEMS_CONF) | $(TOP_SMEMS_FILE)
174157
$(call run_scala_main,tapeout,barstools.macros.MacroCompiler, -n $(HARNESS_SMEMS_CONF) -v $(HARNESS_SMEMS_FILE) -f $(HARNESS_SMEMS_FIR) $(HARNESS_MACROCOMPILER_MODE))
175158

176159
########################################################################################
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ channels:
33
- conda-forge
44
- nodefaults
55

6+
platforms:
7+
- linux-64
8+
69
dependencies:
710
# https://conda-forge.org/feedstock-outputs/
811
# filterable list of all conda-forge packages
@@ -26,7 +29,6 @@ dependencies:
2629
- binutils
2730

2831
- dromajo # from ucb-bar channel - https://github.com/riscv-boom/dromajo
29-
- esp-tools # from ucb-bar channel - https://github.com/ucb-bar/esp-tools-feedstock
3032

3133
# firemarshal deps
3234
- python>=3.8

0 commit comments

Comments
 (0)