-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (50 loc) · 2.5 KB
/
Copy pathMakefile
File metadata and controls
58 lines (50 loc) · 2.5 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
################################################################################
# + Author : Muhammad Ehsan #
# + Date : 07-Sep-2024 #
# + Description : This makefile is for installing openlane and skywater_pdk. #
################################################################################
all: install_dependencies install_docker install_skywater_pdk install_openlane install_klayout
install_dependencies:
@echo "Installing Dependencies..."
sudo apt update
sudo apt-get update
sudo apt install -y build-essential python3 python3-pip make git
sudo apt install -y libcairo2-dev libx11-dev libxkbcommon-x11-dev
sudo apt-get install -y ca-certificates curl gnupg lsb-release
sudo apt-get install -y g++ git libqt5svg5-dev qttools5-dev libqt5xmlpatterns5-dev \
qtmultimedia5-dev libqt5multimediawidgets5 libqt5multimedia5-plugins libqt5multimedia5
sudo apt-get install -y ruby ruby-dev python3-dev libexpat1-dev libssl-dev
@echo "Dependencies Installed."
install_docker:
@echo "Installing Docker..."
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
sudo rm -f /etc/apt/sources.list.d/docker.list
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker $$USER
@echo "Docker Installed."
install_openlane:
@echo "Installing OpenLane..."
git clone https://github.com/The-OpenROAD-Project/OpenLane
cd OpenLane && sudo make
@echo "OpenLane Installed."
install_skywater_pdk:
@echo "Installing Skywater PDK..."
git clone https://github.com/google/skywater-pdk
cd skywater-pdk && \
git submodule update --init libraries/sky130_fd_io/latest && \
git submodule update --init libraries/sky130_fd_pr/latest && \
git submodule update --init libraries/sky130_fd_sc_hd/latest && \
git submodule update --init libraries/sky130_fd_sc_hvl/latest && \
sudo make timing
@echo "Skywater PDK Installed."
test:
@echo "Testing OpenLAne...."
cd OpenLane && sudo make test
install_klayout:
@echo "Installing Klayout..."
sudo apt install klayout
@echo "Klayout Installed."