Skip to content

Conversation

@AlexJones0
Copy link
Contributor

The heartbleed demo legacy build wasn't running in CI - allowing a regression when the recent display driver changes were merged.

This PR:

  • Fixes the regression, allowing the legacy heartbleed demo to work with the latest display driver changes.
  • Adds the legacy heartbleed build to the CI quality check job, to prevent future issues.
  • Does a small bit of related heartbleed / LCD code cleanup that I noticed.

@AlexJones0 AlexJones0 force-pushed the heartbleed_fixes branch 5 times, most recently from aea9683 to d732357 Compare May 21, 2025 14:44
Copy link
Contributor

@marnovandermaas marnovandermaas left a comment

Choose a reason for hiding this comment

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

This looks good to me, and I can see it successfully building in this CI run: https://github.com/lowRISC/sonata-software/actions/runs/15165211539/job/42641098633
(subsequent runs use the cached result).

While the legacy automotive component was updated and the other demos
were updated, the legacy Heartbleed demo was only partially updated -
but the demo was failing to build. This was not caught in CI due to the
fact that, unlike the legacy automotive demo, the legacy heartbleed demo
build is not yet included in CI at the moment.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
This font was included for the Heartbleed demo but now exists in
upstream `display_drivers`, so remove these duplicated definitions.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
The CHERIoT demo starts with a grey rectangle for the response, the
legacy version does not. Correct the difference by adding the rectangle
to the legacy demo component on startup.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
Unlike the automotive demo's legacy component, the heartbleed demo's
legacy component had not been added to the Nix flake and the
corresponding CI .yml file, meaning that regressions in the ability to
build the software were not being caught. Add this so that future
breakages to the demo will also cause CI errors.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
As an example of how to make a firmware build with debug symbols and
-O0, the heartbleed demo legacy component serves as a nice example case.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
@AlexJones0 AlexJones0 merged commit 9f58e47 into lowRISC:main May 22, 2025
1 check passed
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.

3 participants