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
4e2cc790
Commit
4e2cc790
authored
Oct 26, 2018
by
Jaco Hofmann
Browse files
Fix getopts error for new options
parent
3ebb1fd0
Pipeline
#654
canceled with stage
in 1 minute and 30 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bin/tapasco-load-bitstream
View file @
4e2cc790
...
...
@@ -32,5 +32,5 @@ reld = '-d' if args.reload_driver else ''
verb
=
'-v'
if
args
.
verbose
else
''
program
=
'-h'
if
args
.
mode
==
'normal'
or
args
.
mode
==
'program'
else
''
hotplug
=
'-p'
if
args
.
mode
==
'normal'
or
args
.
mode
==
'hotplug'
else
''
cmd
=
'$TAPASCO_HOME/platform/$TAPASCO_PLATFORM/{0}bit_reload.sh {1} {2} {3} {4} {5}
{6}
'
.
format
(
path
,
verb
,
reld
,
hotplug
,
program
,
args
.
bitstream
)
cmd
=
'$TAPASCO_HOME/platform/$TAPASCO_PLATFORM/{0}bit_reload.sh {1} {2} {3} {4} {5}'
.
format
(
path
,
verb
,
reld
,
hotplug
,
program
,
args
.
bitstream
)
subprocess
.
call
([
cmd
],
shell
=
True
)
platform/pcie/module/bit_reload.sh
View file @
4e2cc790
...
...
@@ -75,7 +75,7 @@ HOTPLUG=0
PROGRAM
=
0
OPTIND
=
1
while
getopts
vd opt
;
do
while
getopts
vd
hp
opt
;
do
case
$opt
in
v
)
VERBOSE
=
1
...
...
platform/zynq/module/bit_reload.sh
View file @
4e2cc790
...
...
@@ -45,7 +45,7 @@ HOTPLUG=0
PROGRAM
=
0
OPTIND
=
1
while
getopts
vd opt
;
do
while
getopts
vd
hp
opt
;
do
case
$opt
in
v
)
VERBOSE
=
1
...
...
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