Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenSK
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
koenigl2
OpenSK
Commits
dc088479
Commit
dc088479
authored
4 years ago
by
Guillaume Endignoux
Browse files
Options
Downloads
Patches
Plain Diff
Fix review comments.
parent
7d47de2b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy.py
+6
-6
6 additions, 6 deletions
deploy.py
with
6 additions
and
6 deletions
deploy.py
+
6
−
6
View file @
dc088479
...
@@ -310,13 +310,13 @@ class OpenSKInstaller:
...
@@ -310,13 +310,13 @@ class OpenSKInstaller:
# Need to update
# Need to update
rustup_install
=
[
"
rustup
"
]
rustup_install
=
[
"
rustup
"
]
if
self
.
args
.
verbose_build
:
if
self
.
args
.
verbose_build
:
rustup_install
.
extend
(
[
"
--verbose
"
]
)
rustup_install
.
extend
(
"
--verbose
"
)
rustup_install
.
extend
([
"
install
"
,
target_toolchain_fullstring
])
rustup_install
.
extend
([
"
install
"
,
target_toolchain_fullstring
])
self
.
checked_command
(
rustup_install
)
self
.
checked_command
(
rustup_install
)
rustup_target
=
[
"
rustup
"
]
rustup_target
=
[
"
rustup
"
]
if
self
.
args
.
verbose_build
:
if
self
.
args
.
verbose_build
:
rustup_target
.
extend
(
[
"
--verbose
"
]
)
rustup_target
.
extend
(
"
--verbose
"
)
rustup_target
.
extend
(
rustup_target
.
extend
(
[
"
target
"
,
"
add
"
,
SUPPORTED_BOARDS
[
self
.
args
.
board
].
arch
])
[
"
target
"
,
"
add
"
,
SUPPORTED_BOARDS
[
self
.
args
.
board
].
arch
])
self
.
checked_command
(
rustup_target
)
self
.
checked_command
(
rustup_target
)
...
@@ -368,7 +368,7 @@ class OpenSKInstaller:
...
@@ -368,7 +368,7 @@ class OpenSKInstaller:
if
is_example
:
if
is_example
:
command
.
extend
([
"
--example
"
,
self
.
args
.
application
])
command
.
extend
([
"
--example
"
,
self
.
args
.
application
])
if
self
.
args
.
verbose_build
:
if
self
.
args
.
verbose_build
:
command
.
extend
(
[
"
--verbose
"
]
)
command
.
extend
(
"
--verbose
"
)
self
.
checked_command
(
command
,
env
=
env
)
self
.
checked_command
(
command
,
env
=
env
)
app_path
=
os
.
path
.
join
(
"
target
"
,
props
.
arch
,
"
release
"
)
app_path
=
os
.
path
.
join
(
"
target
"
,
props
.
arch
,
"
release
"
)
if
is_example
:
if
is_example
:
...
@@ -406,7 +406,7 @@ class OpenSKInstaller:
...
@@ -406,7 +406,7 @@ class OpenSKInstaller:
"
elf2tab
"
,
package_parameter
,
self
.
args
.
application
,
"
-o
"
,
tab_filename
"
elf2tab
"
,
package_parameter
,
self
.
args
.
application
,
"
-o
"
,
tab_filename
]
]
if
self
.
args
.
verbose_build
:
if
self
.
args
.
verbose_build
:
elf2tab_args
.
extend
(
[
"
--verbose
"
]
)
elf2tab_args
.
extend
(
"
--verbose
"
)
for
arch
,
app_file
in
binaries
.
items
():
for
arch
,
app_file
in
binaries
.
items
():
dest_file
=
os
.
path
.
join
(
self
.
tab_folder
,
"
{}.elf
"
.
format
(
arch
))
dest_file
=
os
.
path
.
join
(
self
.
tab_folder
,
"
{}.elf
"
.
format
(
arch
))
shutil
.
copyfile
(
app_file
,
dest_file
)
shutil
.
copyfile
(
app_file
,
dest_file
)
...
@@ -698,7 +698,7 @@ if __name__ == "__main__":
...
@@ -698,7 +698,7 @@ if __name__ == "__main__":
choices
=
(
"
boards
"
,
"
programmers
"
),
choices
=
(
"
boards
"
,
"
programmers
"
),
default
=
None
,
default
=
None
,
dest
=
"
listing
"
,
dest
=
"
listing
"
,
help
=
(
"
List supported boards or programmers, 1 per line and then exit.
"
)
,
help
=
"
List supported boards or programmers, 1 per line and then exit.
"
,
)
)
action_group
.
add_argument
(
action_group
.
add_argument
(
"
--board
"
,
"
--board
"
,
...
@@ -740,7 +740,7 @@ if __name__ == "__main__":
...
@@ -740,7 +740,7 @@ if __name__ == "__main__":
action
=
"
store_true
"
,
action
=
"
store_true
"
,
default
=
False
,
default
=
False
,
dest
=
"
verbose_build
"
,
dest
=
"
verbose_build
"
,
help
=
(
"
Build everything in verbose mode.
"
)
,
help
=
"
Build everything in verbose mode.
"
,
)
)
main_parser
.
add_argument
(
main_parser
.
add_argument
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment