build: Don't try to make timing for non-checked out submodules

If a library directory doesn't contain a 'cells' subdir, it's most
likely not checked out, so skip it

Fixes #76

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2020-07-11 22:59:54 +02:00
parent 3803500497
commit 95238de345
1 changed files with 8 additions and 4 deletions

View File

@ -69,14 +69,18 @@ LIBRARIES = $(sort $(notdir $(wildcard libraries/sky130_*_sc_*)))
$(LIBRARIES): | $(CONDA_ENV_PYTHON) $(LIBRARIES): | $(CONDA_ENV_PYTHON)
@$(IN_CONDA_ENV) for V in libraries/$@/*; do \ @$(IN_CONDA_ENV) for V in libraries/$@/*; do \
python -m skywater_pdk.liberty $$V; \ if [ -d "$$V/cells" ]; then \
python -m skywater_pdk.liberty $$V all; \ python -m skywater_pdk.liberty $$V; \
python -m skywater_pdk.liberty $$V all --ccsnoise; \ python -m skywater_pdk.liberty $$V all; \
python -m skywater_pdk.liberty $$V all --ccsnoise; \
fi \
done done
sky130_fd_sc_ms-leakage: | $(CONDA_ENV_PYTHON) sky130_fd_sc_ms-leakage: | $(CONDA_ENV_PYTHON)
@$(IN_CONDA_ENV) for V in libraries/sky130_fd_sc_ms/*; do \ @$(IN_CONDA_ENV) for V in libraries/sky130_fd_sc_ms/*; do \
python -m skywater_pdk.liberty $$V all --leakage; \ if [ -d "$$V/cells" ]; then \
python -m skywater_pdk.liberty $$V all --leakage; \
fi \
done done
sky130_fd_sc_ms: sky130_fd_sc_ms-leakage sky130_fd_sc_ms: sky130_fd_sc_ms-leakage