-
Notifications
You must be signed in to change notification settings - Fork 2
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
Ability to run without setting ZEPHYR_BASE #5
Comments
@koffes Footnotes
|
It's possible to grab it dynamically like this: (unset ZEPHYR_BASE; t="$(west topdir)" && echo "$t/$(west config zephyr.base)") Though we should probably not |
I'm not sure I follow. Environment variables are fixed when you set them. |
I just mean it as a way to compute a fallback for |
|
I think we are mixing things a bit here. But maybe, @koffes, can you elaborate on what is the problem? (and maybe tell if this problem is really worth while, or are we knee-jerk to a minor annoyance?) |
I'd argue this is more than a minor annoyance, but also not critical. The issue arises when having code of version A in A solution would be to either dynamically deduct the current Zephyr root, and/or print a warning if you are running tests in tree |
Looking at the doc: https://docs.zephyrproject.org/latest/boards/native/nrf_bsim/doc/nrf52_bsim.html
some variables such as:
are dependent on ZEPHYR_BASE.
We have seen issues where users have multiple Zephyr folders, and the ZEPHYR_BASE points to the wrong one. This is indeed a user fault, but a very simple trap to fall into.
If there is some way to dynamically find this path/ omit the need for these env. vars. that would simplify usage and remove a pitfall.
This may be related to zephyrproject-rtos/zephyr#82058
The text was updated successfully, but these errors were encountered: