Skip to content

Commit

Permalink
strace_tailor: make more generic, cleanup
Browse files Browse the repository at this point in the history
jordens authored and sbourdeauducq committed Apr 10, 2015
1 parent a69741b commit 5d07072
Showing 2 changed files with 16 additions and 14 deletions.
16 changes: 16 additions & 0 deletions tools/strace_tailor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh
# Copyright Robert Jordens <robert@joerdens.org> 2014,2015

# assuming your xilinx toolchain lives in /opt/Xilinx,
# run `strace_tailor.sh /opt/Xilinx/ [synthesis script] [options]`,
# e.g. for the pipistrello target of misoc:
# strace_tailor.sh /opt/Xilinx/ ./make.py -t pipistrello build-bitstream
# then in your current directory, `opt/Xilinx/*` is the
# minimal toolchain required for this synthesis script run.

PREFIX=$1
shift
strace -e trace=file,process -f -o strace.log $@
sed -n 's|^.*"\('"$PREFIX"'[^"]*\)".*$|\1|p' strace.log \
| sort | uniq | xargs -d '\n' \
cp --parent --no-dereference --preserve=all -t .
14 changes: 0 additions & 14 deletions tools/xilinx_strace_tailor.sh

This file was deleted.

0 comments on commit 5d07072

Please sign in to comment.