Skip to content

menuconfig打不开 #274

@geniusgogo

Description

@geniusgogo
> menuconfig
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 compatibili
ty 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 compatibil
ity with the C tools, rename RTT_DIR to RTT_ROOT (so that the symbol name matches the environment variable name).
warning: the menuconfig symbol RT_USING_THREAD_DETACH_HOOK (defined at ../../rt-thread/kernel/Kconfig:168) has no prompt
menuconfig: Kconfig:18: 'D:\tools\env-windows\packages/lwar/Kconfig' not found (in 'source "$PKGS_DIR/lwar/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.

我的Kconfig是这样写的:

mainmenu "RT-Thread Project Configuration"

config BSP_DIR
    string
    option env="BSP_ROOT"
    default "."

config RTT_DIR
    string
    option env="RTT_ROOT"
    default "../../rt-thread"

config PKGS_DIR
    string
    default "../../packages"

source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/lwar/Kconfig"
source "board/Kconfig"

然后我只要改一下不用环境变量,就可以启动menuconfig。不过原来用环境变量的方法在老版本上一直这么用着的。

mainmenu "RT-Thread Project Configuration"

config BSP_DIR
    string
    option env="BSP_ROOT"
    default "."

config RTT_DIR
    string
    option env="RTT_ROOT"
    default "../../rt-thread"

config PKGS_DIR
    string
    default "../../packages"

source "../../rt-thread/Kconfig"
source "../../packages/lwar/Kconfig"
source "board/Kconfig"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions