-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge support for series 7 devices like the Arty, Nexys Video and NeTV2.
- Loading branch information
Showing
91 changed files
with
3,435 additions
and
960 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#! /usr/bin/env python | ||
|
||
import os | ||
import csv | ||
import sys | ||
|
||
with open(sys.argv[1]) as csvfile: | ||
# 2017-10-15T09:24:17.147577188Z,2017-10-15T09:24:17.147595641Z,18453,tim,1001,tim,1001,/bin/ls,14308,/opt/Xilinx.real,dir,open,O_RDONLY,0000,4096,4096,1 | ||
reader = csv.DictReader( | ||
csvfile, | ||
fieldnames=( | ||
"start_ts", | ||
"end_ts", | ||
"duration_ns", # nanoseconds | ||
"user", | ||
"uid", | ||
"group", | ||
"gid", | ||
"process", | ||
"pid", | ||
"path", | ||
"type"), | ||
) | ||
|
||
paths = set() | ||
for l in reader: | ||
#print(l) | ||
#if l['type'] != 'file': | ||
# continue | ||
if not l['path'].startswith('/opt/Xilinx'): | ||
continue | ||
if not os.path.exists(l['path']): | ||
continue | ||
#if os.path.isdir(l['path']): | ||
# continue | ||
|
||
src = l['path'] | ||
dst = l['path'].replace('/opt/Xilinx.real/', '/opt/Xilinx/') | ||
|
||
paths.add(dst) | ||
|
||
for p in sorted(paths): | ||
print(p) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
SETUP_SRC=$(realpath ${BASH_SOURCE[0]}) | ||
SETUP_DIR=$(dirname $SETUP_SRC) | ||
TOP_DIR=$(realpath $SETUP_DIR/..) | ||
|
||
BASE=$TOP_DIR/build/package-xilinx | ||
echo $BASE | ||
mkdir -p $BASE | ||
|
||
export PREFIX="/opt/Xilinx/" | ||
|
||
# This is based on https://github.com/m-labs/migen/blob/master/tools/strace_tailor.sh | ||
if [ ! -z "$PLATFORMS" ]; then | ||
echo "\$PLATFORMS is set to '$PLATFORMS', please unset it." | ||
exit 1 | ||
fi | ||
if [ ! -z "$TARGETS" ]; then | ||
echo "\$TARGETS is set to '$TARGETS', please unset it." | ||
exit 1 | ||
fi | ||
|
||
( | ||
echo "Deleting previous builds..." | ||
cd build | ||
# Delete all the previous builds | ||
rm -rf *_*_* | ||
) | ||
|
||
STRACE_LOG=$BASE/strace.log | ||
if [ -f $STRACE_LOG ]; then | ||
echo "Deleting old strace log." | ||
rm -v $STRACE_LOG | ||
fi | ||
|
||
# curl -L https://github.com/airnandez/cluefs/releases/download/v0.5/cluefs-v0.5-linux-x86_64.tar.gz | tar -xz | ||
# https://github.com/airnandez/cluefs | ||
# cluefs --mount=/opt/Xilinx --shadow=/opt/Xilinx.real --out=/tmp/Xilinx.log --ro --csv | ||
|
||
#exec strace -e trace=file,process -E LD_LIBRARY_PATH=/opt/Xilinx/Vivado/2017.3/lib/lnx64.o -f -o ${STRACE_LOG} | ||
bash $SETUP_DIR/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
SETUP_SRC=$(realpath ${BASH_SOURCE[0]}) | ||
SETUP_DIR=$(dirname $SETUP_SRC) | ||
TOP_DIR=$(realpath $SETUP_DIR/..) | ||
|
||
for ARG in RACKSPACE_USER RACKSPACE_API; do | ||
if [ -z "${!ARG}" ]; then | ||
echo "$ARG not set" | ||
exit 1 | ||
else | ||
echo "$ARG='${!ARG}'" | ||
fi | ||
done | ||
|
||
BASE=$TOP_DIR/build/package-xilinx | ||
echo $BASE | ||
mkdir -p $BASE | ||
|
||
( | ||
cd $BASE | ||
TB_COMMAND="turbolift --verbose --colorized -u $RACKSPACE_USER -a $RACKSPACE_API --os-rax-auth iad upload -c xilinx" | ||
|
||
# Upload the tar bz | ||
$TB_COMMAND -s . --sync --pattern-match ".*\.gpg" | ||
# Upload the index file | ||
md5sum *.gpg | sort -t- -k4,5n > index.txt | ||
cat index.txt | ||
$TB_COMMAND -s . --sync --pattern-match "index.txt" | ||
) |
Oops, something went wrong.