Skip to content

Fix legacy Kconfig environment variable resolution#283

Draft
BernardXiong with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-menuconfig-issue
Draft

Fix legacy Kconfig environment variable resolution#283
BernardXiong with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-menuconfig-issue

Conversation

Copilot AI commented Jul 15, 2026

Copy link
Copy Markdown

Legacy BSP Kconfig files map BSP_DIR/RTT_DIR symbols to BSP_ROOT/RTT_ROOT environment variables while sourcing paths through $RTT_DIR. Env initialized only part of this mapping, leaving Kconfiglib unable to resolve some configurations.

  • BSP environment

    • Export BSP_ROOT alongside BSP_DIR.
  • RT-Thread environment

    • Populate both RTT_ROOT and RTT_DIR from the detected RT-Thread root before Kconfig parsing.
os.environ['BSP_ROOT'] = bsp_root
os.environ['BSP_DIR'] = bsp_root

os.environ['RTT_ROOT'] = rtt_root
os.environ['RTT_DIR'] = rtt_root

Copilot AI linked an issue Jul 15, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix menuconfig opening issues due to unset environment variables Fix legacy Kconfig environment variable resolution Jul 15, 2026
Copilot AI requested a review from BernardXiong July 15, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

menuconfig打不开

2 participants