blob: dd8b66bcfaaa17e9fef958c72cc8808335d84aa3 [file] [log] [blame]
Tim Edwards02a79f42022-03-14 20:37:48 -04001#!/bin/bash
Tim Edwards52af7762022-02-18 13:49:23 -05002#
3# pdk_update.sh --
4#
5# Update the PDK from git
6# (mainly for use with the Google/SkyWater SKY130 PDK)
7#
8# Usage: pdk_update.sh <directory>
9#
10
Tim Edwards02a79f42022-03-14 20:37:48 -040011if [ ! -d $1 ] ; then
12 echo "Project does not exist in $1 ; Cannot update."
Tim Edwards52af7762022-02-18 13:49:23 -050013 exit 0
14fi
15
16cd $1
17
18# Update top-level PDK repository
19
20echo "Pulling PDK repository"
21git pull
22
23# Update submodules
24
25echo "Updating PDK library submodules"
26git submodule update --remote
27
28# Regenerate liberty files
29
30echo "Regenerating liberty timing files"
Tim Edwards10b35502022-03-16 13:22:14 -040031make -j$(nproc) timing