Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions cmds/cmd_menuconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,11 @@ def cmd(args):

env_root = Import('env_root')

# get RTT_DIR from environment or Kconfig file
if get_rtt_root():
os.environ['RTT_DIR'] = get_rtt_root()
# Keep both legacy Kconfig symbol names and their environment variables set.
rtt_root = get_rtt_root()
if rtt_root:
os.environ['RTT_ROOT'] = rtt_root
os.environ['RTT_DIR'] = rtt_root

if not os.path.exists('Kconfig'):
if platform.system() == "Windows":
Expand Down
1 change: 1 addition & 0 deletions env.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def export_environment_variable():
os.environ["ENV_ROOT"] = env_root
os.environ['PKGS_ROOT'] = pkgs_root
os.environ['PKGS_DIR'] = pkgs_root
os.environ['BSP_ROOT'] = bsp_root
os.environ['BSP_DIR'] = bsp_root

Export('env_root')
Expand Down