Commit 58d5ca9d authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Only update RCC path for RTEMS deployment nodes.

parent ba2a2943
......@@ -395,10 +395,11 @@ def SetEnvForRTEMS(platformType):
elif platformType.startswith("PLATFORM_GUMSTIX_RTEMS"):
src = "RTEMS_MAKEFILE_PATH_GUMSTIX"
os.putenv("RTEMS_MAKEFILE_PATH", os.environ[src])
RMP = os.getenv("RTEMS_MAKEFILE_PATH")
RCCPATH = os.sep.join(RMP.split(os.sep)[:-2] + ["bin"])
if RCCPATH not in os.getenv("PATH"):
os.putenv("PATH", RCCPATH + ":" + os.getenv("PATH"))
if 'RTEMS' in platformType:
RMP = os.getenv("RTEMS_MAKEFILE_PATH")
RCCPATH = os.sep.join(RMP.split(os.sep)[:-2] + ["bin"])
if RCCPATH not in os.getenv("PATH"):
os.putenv("PATH", RCCPATH + ":" + os.getenv("PATH"))
except KeyError:
panic("You must configure %s in your environment" % src)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment