-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·31 lines (24 loc) · 961 Bytes
/
setup.sh
File metadata and controls
executable file
·31 lines (24 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -e
# Extract the Docker image tag from MODULE.bazel (single source of truth)
DOCKER_IMAGE=$(grep -oP 'image\s*=\s*"\K[^"]+' MODULE.bazel)
if [ -z "$DOCKER_IMAGE" ]; then
echo "ERROR: Could not extract Docker image from MODULE.bazel"
exit 1
fi
echo "=== HighTide Setup ==="
# 1. Initialize ORFS submodule (used by both Make and Bazel flows)
echo "Initializing ORFS submodule..."
git submodule init OpenROAD-flow-scripts
git submodule update --recursive OpenROAD-flow-scripts
# 2. Create symlinks for Make flow
echo "Creating symlinks for Make flow..."
ln -sf OpenROAD-flow-scripts/flow/util .
ln -sf OpenROAD-flow-scripts/flow/scripts .
ln -sf OpenROAD-flow-scripts/flow/platforms .
# 3. Pull Docker image (used by both flows)
echo "Pulling Docker image: ${DOCKER_IMAGE}"
docker pull "${DOCKER_IMAGE}"
echo "=== Setup complete ==="
echo " Make flow: ./runorfs.sh"
echo " Bazel flow: bazel build //designs/asap7/lfsr:lfsr_synth"