Skip to content

Commit

Permalink
Added support for Sonic cross-compilation build. (#2233)
Browse files Browse the repository at this point in the history
Signed-off-by: marvell <marvell@cpss-build3.marvell.com>

Co-authored-by: marvell <marvell@cpss-build3.marvell.com>
  • Loading branch information
gregshpit and marvell authored Jun 29, 2022
1 parent c3620fc commit 7d9faf3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utilities_common/auto_techsupport_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@

# Explicity Pass this to the subprocess invoking techsupport
ENV_VAR = os.environ
PATH_PREV = ENV_VAR["PATH"] if "PATH" in ENV_VAR else ""
ENV_VAR["PATH"] = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:" + PATH_PREV
if ('CROSS_BUILD_ENVIRON' not in ENV_VAR) or (ENV_VAR['CROSS_BUILD_ENVIRON'] != 'y'):
# Add native system directories to PATH variable only if it is not cross-compilation build
PATH_PREV = ENV_VAR["PATH"] if "PATH" in ENV_VAR else ""
ENV_VAR["PATH"] = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:" + PATH_PREV

# Techsupport Exit Codes
EXT_LOCKFAIL = 2
Expand Down

0 comments on commit 7d9faf3

Please sign in to comment.