Skip to content

Commit 5d07072

Browse files
jordenssbourdeauducq
authored andcommittedApr 10, 2015
strace_tailor: make more generic, cleanup
1 parent a69741b commit 5d07072

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed
 

Diff for: ‎tools/strace_tailor.sh

+16
Original file line numberDiff line numberDiff line change
@@ -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 .

Diff for: ‎tools/xilinx_strace_tailor.sh

-14
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.