Skip to content

Add marker for config_auto_init_enable_debug#19

Closed
chrysn wants to merge 1 commit intomainfrom
marker-for-config-auto-init-enable-debug
Closed

Add marker for config_auto_init_enable_debug#19
chrysn wants to merge 1 commit intomainfrom
marker-for-config-auto-init-enable-debug

Conversation

@chrysn
Copy link
Copy Markdown
Member

@chrysn chrysn commented Feb 20, 2023

This checks the generated source for a precise line (pub const CONFIG_AUTO_INIT_ENABLE_DEBUG: u32 = 1;) and if present, sets the marker.

The =1 comparison is not too weird because the input to this has been passed through genconfigheader.sh, which ensures that no weird values (eg. =2) show up.

The whole line is weird because so far I've used markers to tell whether or not something has become part of the RIOT source, not to check for flags.

It may be practical to do a run through all the items passed through genconfigheader.sh (and thus found in riotbuild.h) for flags which might be enabled but would need checking at build time.


So to summarize, I'm not sure yet this is a good approach -- putting it here a) for review and b) to have a branch that can be used by auto-init users (who need some information like this in order to properly initialize their auto_init_module_t strucs).

chrysn added a commit to RIOT-OS/rust-riot-wrappers that referenced this pull request Feb 20, 2023
The metadata is not correct in this commit: This will need riot-sys
0.7.10, but that's not released yet -- not even its main branch contains
RIOT-OS/rust-riot-sys#19 so far.
chrysn added a commit to RIOT-OS/rust-riot-wrappers that referenced this pull request Feb 20, 2023
The metadata is not correct in this commit: This will need riot-sys
0.7.10, but that's not released yet -- not even its main branch contains
RIOT-OS/rust-riot-sys#19 so far.
@chrysn
Copy link
Copy Markdown
Member Author

chrysn commented Feb 22, 2023

Abandoned in favor of #21 and a local solution in riot-wrappers.

@chrysn chrysn closed this Feb 22, 2023
chrysn added a commit to RIOT-OS/rust-riot-wrappers that referenced this pull request Feb 22, 2023
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