Skip to content

ltimer: use platsupport export where it makes sense - #142

Merged
Indanz merged 2 commits into
seL4:masterfrom
midnightveil:ltimer-use-platsupport
Jun 1, 2025
Merged

ltimer: use platsupport export where it makes sense#142
Indanz merged 2 commits into
seL4:masterfrom
midnightveil:ltimer-use-platsupport

Conversation

@midnightveil

@midnightveil midnightveil commented May 29, 2025

Copy link
Copy Markdown
Contributor

This is a nonfunctional change, purely a decoupling of configs. Depends on seL4/util_libs#196 to be merged first.

Test with: seL4/util_libs#196


In libplatsupport, we know which platforms do not support an ltimer implementation, so rather than duplicating them, we can re-use the cmake config variable here.

However, this needs to be moved after util_libs_import_libraries() for the config to appear, but before config_option for it to be generated in the gen_config.h file.

I have tested this with:

  • maaxboard (supports timer, tests enabled)
  • zynqmp (supports timer, tests disabled)
  • cheshire (no timer support, tests disabled)

@Indanz Indanz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than my request to change the name of LibPlatSupportNoPlatformLtimer in the other PR, this looks good to me.

@midnightveil
midnightveil marked this pull request as draft May 30, 2025 03:59
@midnightveil

midnightveil commented May 30, 2025

Copy link
Copy Markdown
Contributor Author

Waiting on seL4/util_libs#197 Good to go now

@Indanz Indanz added the hw-test set to run sel4test hardware test for this PR label May 30, 2025
@Indanz
Indanz marked this pull request as ready for review May 30, 2025 21:41
midnightveil and others added 2 commits May 31, 2025 12:37
In libplatsupport, we know which platforms do not support an ltimer
implementation, so rather than duplicating them, we can re-use the
cmake config variable here.

However, this needs to be moved after util_libs_import_libraries()
for the config to appear, but before config_option for it to be
generated in the gen_config.h file.

I have tested this with:

- maaxboard (supports timer, tests enabled)
- zynqmp (supports timer, tests disabled)
- cheshire (no timer support, tests disabled)

Signed-off-by: julia <git.ts@trainwit.ch>
Signed-off-by: Indan Zupancic <indan@nul.nu>
@Indanz
Indanz merged commit 1957e33 into seL4:master Jun 1, 2025
@midnightveil
midnightveil deleted the ltimer-use-platsupport branch June 1, 2025 09:59
midnightveil added a commit to midnightveil/seL4_util_libs that referenced this pull request Jul 2, 2025
The if statements were not strictly equivalent and broke the
camkes timer component builds:

https://github.com/seL4/util_libs/pull/196/files#r2178857087

Ref: seL4/sel4test#142

Signed-off-by: julia <git.ts@trainwit.ch>
midnightveil added a commit to midnightveil/seL4_util_libs that referenced this pull request Jul 2, 2025
The if statements were not strictly equivalent and broke the
camkes timer component builds:

https://github.com/seL4/util_libs/pull/196/files#r2178857087

Ref: seL4/sel4test#142

Signed-off-by: julia <git.ts@trainwit.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hw-test set to run sel4test hardware test for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants