Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/migen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ec080479dae7
Choose a base ref
...
head repository: m-labs/migen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 72fae6152519
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Mar 27, 2015

  1. 2
    Copy the full SHA
    20b646b View commit details
  2. Copy the full SHA
    72fae61 View commit details
Showing with 14 additions and 0 deletions.
  1. +14 −0 xilinx_strace_tailor.sh
14 changes: 14 additions & 0 deletions xilinx_strace_tailor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
# Copyright Robert Jordens <robert@joerdens.org> 2014,2015

# assuming your xilinx toolchain lives in /opt/Xilinx,
# run `strace-tailor.sh [synthesis script] [options]`
# then in your current directory, `opt/Xilinx/*` is the
# minimal toolchain required for this synthesis script run.

PREFIX=\\/opt\\/Xilinx\\/

strace -e trace=file,process -f -o strace.log $@
sed -n "s/^.*\"\\(${PREFIX}[^\"]*\\)\".*$/\\1/p" strace.log \
| sort | uniq | tr '\n' '\0' \
| xargs -0 cp --parent --no-dereference --preserve=all -t .