mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
move xilinx_strace_tailor to tools
This commit is contained in:
parent
c169f0b189
commit
b469571afe
1 changed files with 14 additions and 0 deletions
14
tools/xilinx_strace_tailor.sh
Executable file
14
tools/xilinx_strace_tailor.sh
Executable file
|
@ -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 .
|
Loading…
Reference in a new issue