Skip to content

Conversation

@midnightveil
Copy link
Contributor

@midnightveil midnightveil commented May 29, 2025

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)

Copy link
Contributor

@Indanz Indanz left a comment

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
Copy link
Contributor Author

midnightveil commented May 30, 2025

Waiting on seL4/util_libs#197 Good to go now

@midnightveil midnightveil force-pushed the ltimer-use-platsupport branch from 91304e4 to 1a3ef29 Compare May 30, 2025 04:24
@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>
@midnightveil midnightveil force-pushed the ltimer-use-platsupport branch from 06ab6bd to 2120b82 Compare May 31, 2025 02:38
@Indanz Indanz merged commit 1957e33 into seL4:master Jun 1, 2025
156 of 164 checks passed
@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