Comments (3)
需要首先验证的是,如果放弃option env=
的方式,studio是否没问题。如果没问题,那么就可以考虑放弃了。当然也有一种方式是修改kconfiglib的代码,但这个是否会涉及到上游代码了。
from rt-thread.
需要首先验证的是,如果放弃
option env=
的方式,studio是否没问题。如果没问题,那么就可以考虑放弃了。当然也有一种方式是修改kconfiglib的代码,但这个是否会涉及到上游代码了。
上游有他的考量,想在上游加上恐怕很难指望了。如果还有用,也可以考虑在其它地方扩展。
以下是来自上游(Kconfiglib)
可能与之相关的信息以供参考:
-
Environment variables are expanded directly in e.g.
source
andmainmenu
statements, meaningoption 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 theoption env
symbol always matched the environment variable. Compatibility with older Linux kernels is the main reasonoption 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.
需要首先验证的是,如果放弃
option env=
的方式,studio是否没问题。如果没问题,那么就可以考虑放弃了。当然也有一种方式是修改kconfiglib的代码,但这个是否会涉及到上游代码了。上游有他的考量,想在上游加上恐怕很难指望了。如果还有用,也可以考虑在其它地方扩展。 以下是来自上游
(Kconfiglib)
可能与之相关的信息以供参考:
- Environment variables are expanded directly in e.g.
source
andmainmenu
statements, meaningoption env
symbols are redundant.
This is the standard behavior with the newKconfig 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 theoption env
symbol always matched the environment variable. Compatibility with older Linux kernels is the main reasonoption env
is still supported.
The C tools have dropped support foroption env
.文中意思似乎是已经放弃支持
option env
了,转而推新的 Kconfig 预处理标准,如:BSP_DIR := ../../.. source "$(RTT_DIR)/Kconfig"
那就需要验证studio中的web kconfig是否支持这样的方式了。
from rt-thread.
Related Issues (20)
- stm32cubeMX生成的 rt-thread makefile工程似乎有bug
- duo:编译时是否可以默认加入 gpio HOT 4
- 启动问题 HOT 3
- duo: atoi crash HOT 2
- duo: spi: loop test support
- duo : adc: 测量校准问题 HOT 1
- ..\..\..\components\drivers\ipc\completion.c文件缺失 HOT 5
- stm32l4 libraries missing? HOT 2
- rt smart 内核挂在 sd 卡崩溃
- object.c 中 rt_object_find 的修改存在 bug HOT 11
- [object] 当对象名字长度等于RT_NAME_MAX时异常
- RT-Thread Studio生成工程编译失败
- duo: cv18xx_risc-v failed to build HOT 2
- duo: cppcheck failed
- duo:build warnings
- duo: little core does not work HOT 2
- 在rtthread studio建立v5.1.0的工程不能用
- [bsp/rk3568]:使用v5.1.0版本无法正常启动 HOT 3
- qemu-vexpress-a9 中使用c++出错 HOT 4
- rt_object_get_information函数优化问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rt-thread.