Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
orchestrator
Commits
51b580db
Commit
51b580db
authored
Sep 15, 2017
by
Thanassis Tsiodras
Browse files
Update the environment variables as specified in Ocarina's deployment target EnvVars section
parent
c77834fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
orchestrator/taste-orchestrator.py
View file @
51b580db
...
...
@@ -100,6 +100,11 @@ g_customLDFlagsPerNode = {}
# otherwise.
g_customCFlagsForUserCodeOnlyPerNode
=
{}
# Discussion in Mantis ticket 662: Adding env vars per deployment
# target and using them in the build - e.g.
# RTEMS_MAKEFILE_PATH
g_envVarsPerNode
=
{}
# Output folder we build in
g_absOutputDir
=
""
...
...
@@ -2062,6 +2067,13 @@ def ParsePartitionInformation():
g_customLDFlagsPerNode
.
setdefault
(
partitionName
,
[]).
append
(
"-g -fprofile-arcs -ftest-coverage -lgcov"
)
except
:
pass
elif
line
.
startswith
(
'envvars'
):
g_stageLog
.
info
(
"Assigning target-specific environment variables..."
)
envvars
=
re
.
sub
(
r
'^envvars\s* '
,
''
,
line
)
for
envVarAssignment
in
envvars
.
split
(
':'
):
key
,
value
=
envVarAssignment
.
split
(
'='
)
print
(
key
,
'==>'
,
value
)
os
.
putenv
(
key
,
value
)
else
:
g_fromFunctionToPartition
[
line
]
=
partitionNameWithoutSuffix
if
line
not
in
g_distributionNodes
[
partitionName
]:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment