We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a69741b commit 5d07072Copy full SHA for 5d07072
tools/strace_tailor.sh
@@ -0,0 +1,16 @@
1
+#!/bin/sh
2
+# Copyright Robert Jordens <robert@joerdens.org> 2014,2015
3
+
4
+# assuming your xilinx toolchain lives in /opt/Xilinx,
5
+# run `strace_tailor.sh /opt/Xilinx/ [synthesis script] [options]`,
6
+# e.g. for the pipistrello target of misoc:
7
+# strace_tailor.sh /opt/Xilinx/ ./make.py -t pipistrello build-bitstream
8
+# then in your current directory, `opt/Xilinx/*` is the
9
+# minimal toolchain required for this synthesis script run.
10
11
+PREFIX=$1
12
+shift
13
+strace -e trace=file,process -f -o strace.log $@
14
+sed -n 's|^.*"\('"$PREFIX"'[^"]*\)".*$|\1|p' strace.log \
15
+ | sort | uniq | xargs -d '\n' \
16
+ cp --parent --no-dereference --preserve=all -t .
tools/xilinx_strace_tailor.sh
0 commit comments