Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
d28e1a32
Commit
d28e1a32
authored
May 26, 2017
by
Jens Korinth
Browse files
Bugfix in basic scripts for PyNQ
parent
ea050b7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
bin/tapasco-build-libs
View file @
d28e1a32
...
...
@@ -18,7 +18,7 @@ print 'Build mode: ' + args.mode
if
not
'TAPASCO_PLATFORM'
in
os
.
environ
:
print
(
'Environment variable TAPASCO_PLATFORM is not set, guessing Platform ...'
)
if
gethostname
()
in
[
'zed'
,
'zedboard'
,
'zc706'
,
'zynq'
]:
if
gethostname
()
in
[
'zed'
,
'zedboard'
,
'zc706'
,
'zynq'
,
'pynq'
]:
os
.
environ
[
'TAPASCO_PLATFORM'
]
=
'zynq'
else
:
os
.
environ
[
'TAPASCO_PLATFORM'
]
=
'vc709'
...
...
@@ -36,9 +36,12 @@ if clean or args.rebuild:
if
not
clean
:
if
debug
:
print
(
'Building debug mode libraries...'
)
print
(
'Building debug mode libraries...'
)
else
:
print
(
'Building release mode libraries, pass "debug" as first argument to build debug libs...'
)
print
(
'Building release mode libraries, pass "debug" as first argument to build debug libs...'
)
if
not
os
.
environ
[
'LINUX_HOME'
]
is
None
:
subprocess
.
call
([
'make -C '
+
os
.
environ
[
'LINUX_HOME'
]
+
' scripts'
],
shell
=
True
)
if
os
.
environ
[
'TAPASCO_PLATFORM'
]
is
'vc709'
:
print
'cd '
+
moddir
+
' && make '
+
(
'DEBUG_VERBOSE=y '
if
driver_debug
else
' '
)
...
...
bin/tapasco-load-bitstream
View file @
d28e1a32
...
...
@@ -16,7 +16,7 @@ if not os.path.exists(args.bitstream):
if
not
'TAPASCO_PLATFORM'
in
os
.
environ
:
print
(
'Environment variable TAPASCO_PLATFORM is not set, guessing Platform ...'
)
if
gethostname
()
in
[
'zed'
,
'zedboard'
,
'zc706'
,
'zynq'
]:
if
gethostname
()
in
[
'zed'
,
'zedboard'
,
'zc706'
,
'zynq'
,
'pynq'
]:
os
.
environ
[
'TAPASCO_PLATFORM'
]
=
'zynq'
else
:
os
.
environ
[
'TAPASCO_PLATFORM'
]
=
'vc709'
...
...
Jens Korinth
@jk
mentioned in commit
a831b501
·
Jul 14, 2017
mentioned in commit
a831b501
mentioned in commit a831b5015df6bd8f8d23ddd334a3b1159392de92
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment