From 20b646bd1a4df084cd85299b372aed35b7c1d28e Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Fri, 27 Mar 2015 19:21:16 +0100 Subject: [PATCH] add tool to build minimal xilinx toolchains --- xilinx_strace_tailor.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 xilinx_strace_tailor.sh diff --git a/xilinx_strace_tailor.sh b/xilinx_strace_tailor.sh new file mode 100644 index 00000000..57bb74c4 --- /dev/null +++ b/xilinx_strace_tailor.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# Copyright Robert Jordens 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 . -- 2.30.2