Skip to content

Conversation

@sora44023
Copy link

Description: I am using Keystone on a SiFive HiFive Unmatched Rev B board and frequently modify the Security Monitor (SM) for testing.

Problem: Currently, running the following command does not update the final SD card image as expected:

make BUILDROOT_TARGET=keystone-sm-dirclean && make

While keystone-sm-dirclean correctly triggers opensbi-dirclean, the U-Boot artifacts are not rebuilt. Consequently, changes to the Security Monitor are not reflected in the final image on devices where U-Boot embeds or depends on the OpenSBI binary.

Solution: This PR adds a dependency ensuring that uboot-dirclean is triggered whenever opensbi-dirclean runs, provided U-Boot is enabled. This ensures all boot components are properly rebuilt and the latest SM changes are propagated to the generated SD card image.

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