mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-29 17:39:02 +02:00
switch from conda to nix for tooling
This commit is contained in:
@@ -58,8 +58,8 @@ INSTALL_BASE_DIRS := gds_lib mag_lib sp_lib lvs_lib calibre_lvs_lib klayout_lvs_
|
||||
INSTALL_BASE := $(OPENRAM_HOME)/../technology/sky130
|
||||
INSTALL_DIRS := $(addprefix $(INSTALL_BASE)/,$(INSTALL_BASE_DIRS))
|
||||
|
||||
# If conda is installed, we will use ciel from there
|
||||
CONDA_DIR := $(wildcard $(TOP_DIR)/miniconda)
|
||||
# If nix is available, run ciel via nix develop
|
||||
NIX_BIN := $(shell command -v nix 2>/dev/null)
|
||||
|
||||
check-pdk-root:
|
||||
ifndef PDK_ROOT
|
||||
@@ -103,23 +103,21 @@ sky130-install: $(SRAM_LIB_DIR)
|
||||
|
||||
sky130-pdk: $(SKY130_PDKS_DIR)
|
||||
@echo "Installing SKY130 via ciel..."
|
||||
ifeq ($(CONDA_DIR),)
|
||||
ifeq ($(NIX_BIN),)
|
||||
ciel enable --pdk sky130 $(SKY130_CIEL)
|
||||
else
|
||||
source $(TOP_DIR)/miniconda/bin/activate && \
|
||||
ciel enable --pdk sky130 $(SKY130_CIEL) && \
|
||||
conda deactivate
|
||||
nix --extra-experimental-features 'nix-command flakes' develop --command \
|
||||
ciel enable --pdk sky130 $(SKY130_CIEL)
|
||||
endif
|
||||
.PHONY: sky130-pdk
|
||||
|
||||
gf180mcu-pdk:
|
||||
@echo "Installing GF180 via ciel..."
|
||||
ifeq ($(CONDA_DIR),)
|
||||
ifeq ($(NIX_BIN),)
|
||||
ciel enable --pdk gf180mcu $(GF180_CIEL)
|
||||
else
|
||||
source $(TOP_DIR)/miniconda/bin/activate && \
|
||||
ciel enable --pdk gf180mcu $(GF180_CIEL) && \
|
||||
conda deactivate
|
||||
nix --extra-experimental-features 'nix-command flakes' develop --command \
|
||||
ciel enable --pdk gf180mcu $(GF180_CIEL)
|
||||
endif
|
||||
.PHONY: gf180mcu-pdk
|
||||
|
||||
|
||||
Reference in New Issue
Block a user