Skip to content

after scons --dist , menuconfig will error #7918

Closed
@supperthomas

Description

@supperthomas

after scons --dist in

stm32/stm32f407-atk-explorer/

in dist project
execute menuconfig
will error like this:

KconfigError: rt-thread/libcpu/Kconfig:241: 'rt-thread/libcpu/aarch64/Kconfig' not found (in 'source "$RTT_DIR/libcpu/aarch64/Kconfig"').
Kconfig:5: warning: BSP_ROOT has 'option env="BSP_DIR"', but the environment variable BSP_DIR is not set
Kconfig:5: warning: Kconfiglib expands environment variables in strings directly, meaning you do not need 'option env=...' "bounce" symbols. For compatibility with the C tools, rename BSP_DIR to BSP_ROOT (so that the symbol name matches the environment variable name).
Kconfig:10: warning: RTT_ROOT has 'option env="RTT_DIR"', but the environment variable RTT_DIR is not set
Kconfig:10: warning: Kconfiglib expands environment variables in strings directly, meaning you do not need 'option env=...' "bounce" symbols. For compatibility with the C tools, rename RTT_DIR to RTT_ROOT (so that the symbol name matches the environment variable name).
Kconfig:15: warning: Kconfiglib expands environment variables in strings directly, meaning you do not need 'option env=...' "bounce" symbols. For compatibility with the C tools, rename PKGS_DIR to PKGS_ROOT (so that the symbol name matches the environment variable name).
KconfigError: rt-thread/libcpu/Kconfig:241: 'rt-thread/libcpu/aarch64/Kconfig' not found (in 'source "$RTT_DIR/libcpu/aarch64/Kconfig"'). Check that environment variables are set correctly (e.g. $srctree, which is unset or blank). Also note that unset environment variables expand to the empty string.:
  File "/home/runner/work/rt-thread/rt-thread/bsp/stm32/stm32f407-atk-explorer/dist/project/SConstruct", line 52:
    objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
  File "/home/runner/work/rt-thread/rt-thread/bsp/stm32/stm32f407-atk-explorer/dist/project/rt-thread/tools/building.py", line 352:
    guiconfig_silent(Rtt_Root)
  File "/home/runner/work/rt-thread/rt-thread/bsp/stm32/stm32f407-atk-explorer/dist/project/rt-thread/tools/menuconfig.py", line 325:
    defconfig.main()
  File "/home/runner/work/rt-thread/rt-thread/bsp/stm32/stm32f407-atk-explorer/dist/project/rt-thread/tools/defconfig.py", line 37:
    kconf = kconfiglib.Kconfig(args.kconfig)
  File "/home/runner/work/rt-thread/rt-thread/bsp/stm32/stm32f407-atk-explorer/dist/project/rt-thread/tools/kconfiglib.py", line 1030:
    self._parse_block(None, self.top_node, self.top_node)
  File "/home/runner/work/rt-thread/rt-thread/bsp/stm32/stm32f407-atk-explorer/dist/project/rt-thread/tools/kconfiglib.py", line 2877:
    prev = self._parse_block(None, parent, prev)
  File "/home/runner/work/rt-thread/rt-thread/bsp/stm32/stm32f407-atk-explorer/dist/project/rt-thread/tools/kconfiglib.py", line 2877:
    prev = self._parse_block(None, parent, prev)
  File "/home/runner/work/rt-thread/rt-thread/bsp/stm32/stm32f407-atk-explorer/dist/project/rt-thread/tools/kconfiglib.py", line 2[89](https://github.com/lt6210925/rt-thread/actions/runs/5769480305/job/15641554912#step:7:90)6:
    self._parse_block(_T_ENDIF, node, node)
  File "/home/runner/work/rt-thread/rt-thread/bsp/stm32/stm32f407-atk-explorer/dist/project/rt-thread/tools/kconfiglib.py", line 2865:
    raise KconfigError(

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions