-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify telink build #9639
Simplify telink build #9639
Conversation
Latest vscode image contains TELINK_ZEPHYR_SDK_DIR, no need to hardcode the path to it in the build script anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add this as an argument to the script not as an environment variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add this as an argument to the script not as an environment variable?
@mspang - I do not think I can - this is zephyr build environment which is cmake based. I am just following what the rest of the build scrips do (or at least used to do). |
west uses ZEPHYR_BASE not TELINK_ZEPHYR_BASE. I'd rather not add new environment variables. These environment variables will be set in builds other than the telink build which we don't want. |
I believe to really fix this, we would need to make all platforms the same. There is an imbalance here: nrf was the first platform and took over setting ZEPHYR_BASE and similar environment variables globally. Telink is the 2nd zephyr platform, so it uses separate env variables. It seems we want to make nrf not set globals, however that seems to be a larger change. |
There could be --nrfconnect-sdk and --telink-zephyr-sdk options to the build script (and eventually --[upstream-]zephyr-sdk ) ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved given that the environment variables seem to be preexisting issues and this is cleaning it up some.
Size increase report for "esp32-example-build" from 92d3a28
Full report output
|
Problem
Previous vscode images were missing required build environment variables so build script hardcoded zephyr SDK paths
Change overview
After #9535 we can use environment variables.
Testing
Local build, CI build.