Skip to content

newt/syscfg: Expand nested MYNEWT_VAL references #596

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m-gorecki
Copy link
Contributor

Now Newt will resolve references of nested MYNEWT_VAL references.

Example:
CONFIG_A: MYNEWT_VAL(CONFIG_B)
CONFIG_B: MYNEWT_VAL(CONFIG_C)
CONFIG_C: 1

Before this change the outcome of this configuration would depend on configs resolution order.
If CONFIG_A would be resolved before CONFIG_B the final outcome would be: CONFIG_A: 'MYNEWT_VAL(CONFIG_C)' <- string copied from not yet resolved CONFIG_B CONFIG_B: 1
CONFIG_C: 1

Now all the configs will get value 1, as expected.

Now Newt will resolve references of nested MYNEWT_VAL references.

Example:
CONFIG_A: MYNEWT_VAL(CONFIG_B)
CONFIG_B: MYNEWT_VAL(CONFIG_C)
CONFIG_C: 1

Before this change the outcome of this configuration would
depend on configs resolution order.
If CONFIG_A would be resolved before CONFIG_B the final outcome would be:
CONFIG_A: 'MYNEWT_VAL(CONFIG_C)' <- string copied from not yet resolved CONFIG_B
CONFIG_B: 1
CONFIG_C: 1

Now all the configs will get value 1, as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant