Also save the magic build.
Enables us to figure out what magic was doing when it segfaulted.
Signed-off-by: Tim 'mithro' Ansell <tansell@google.com>
diff --git a/open_pdks/run.sh b/open_pdks/run.sh
index e4c15a9..1a9bae9 100755
--- a/open_pdks/run.sh
+++ b/open_pdks/run.sh
@@ -92,8 +92,6 @@
# Tar up result.
find out/pdk-* | sort | tee pdk.files
(
- whoami
- ls -l out/pdk-all
cd out/pdk-all
# Try to create a deterministic tar file
# https://reproducible-builds.org/docs/archives/
@@ -111,6 +109,22 @@
\
--file $TOP_DIR/out/pdk-SKY130A.tar.xz .
)
+(
+ cd out/magic
+ sudo tar \
+ --create \
+ --xz \
+ --verbose \
+ \
+ --mtime='2020-05-07 00:00Z' \
+ --sort=name \
+ --owner=0 \
+ --group=0 \
+ --numeric-owner \
+ --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \
+ \
+ --file $TOP_DIR/out/magic.tar.xz .
+)
sudo chown $UID $TOP_DIR/out/*.tar.xz
du -h $TOP_DIR/out/*.tar.xz