Giter Site home page Giter Site logo

Comments (3)

BernardXiong avatar BernardXiong commented on May 28, 2024

需要首先验证的是,如果放弃option env=的方式,studio是否没问题。如果没问题,那么就可以考虑放弃了。当然也有一种方式是修改kconfiglib的代码,但这个是否会涉及到上游代码了。

from rt-thread.

sp-cai avatar sp-cai commented on May 28, 2024

需要首先验证的是,如果放弃option env=的方式,studio是否没问题。如果没问题,那么就可以考虑放弃了。当然也有一种方式是修改kconfiglib的代码,但这个是否会涉及到上游代码了。

上游有他的考量,想在上游加上恐怕很难指望了。如果还有用,也可以考虑在其它地方扩展。
以下是来自上游(Kconfiglib)可能与之相关的信息以供参考:

  • Environment variables are expanded directly in e.g. source and mainmenu statements, meaning option env symbols are redundant.

    This is the standard behavior with the new Kconfig preprocessor,which Kconfiglib implements.

    option env symbols are accepted but ignored, which leads the caveat that they must have the same name as the environment variables they reference (Kconfiglib warns if the names differ). This keeps Kconfiglib compatible with older Linux kernels, where the name of the option env symbol always matched the environment variable. Compatibility with older Linux kernels is the main reason option env is still supported.

    The C tools have dropped support for option env.

文中意思似乎是已经放弃支持option env了,转而推新的 Kconfig 预处理标准,如:

BSP_DIR := ../../..
source "$(RTT_DIR)/Kconfig"

from rt-thread.

BernardXiong avatar BernardXiong commented on May 28, 2024

需要首先验证的是,如果放弃option env=的方式,studio是否没问题。如果没问题,那么就可以考虑放弃了。当然也有一种方式是修改kconfiglib的代码,但这个是否会涉及到上游代码了。

上游有他的考量,想在上游加上恐怕很难指望了。如果还有用,也可以考虑在其它地方扩展。 以下是来自上游(Kconfiglib)可能与之相关的信息以供参考:

  • Environment variables are expanded directly in e.g. source and mainmenu statements, meaning option env symbols are redundant.
    This is the standard behavior with the new Kconfig preprocessor,which Kconfiglib implements.
    option env symbols are accepted but ignored, which leads the caveat that they must have the same name as the environment variables they reference (Kconfiglib warns if the names differ). This keeps Kconfiglib compatible with older Linux kernels, where the name of the option env symbol always matched the environment variable. Compatibility with older Linux kernels is the main reason option env is still supported.
    The C tools have dropped support for option env.

文中意思似乎是已经放弃支持option env了,转而推新的 Kconfig 预处理标准,如:

BSP_DIR := ../../..
source "$(RTT_DIR)/Kconfig"

那就需要验证studio中的web kconfig是否支持这样的方式了。

from rt-thread.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.