Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makefiles/suit: avoid unwanted key creation trigger #18344

Conversation

DanielLockau-MLPA
Copy link
Contributor

Contribution description

This fixes a trigger of re-creation of an already existing SUIT
key when combining a build target with the clean target, e.g.
make clean all.

Testing procedure

Without the changes of this PR

make -j in ${RIOTBASE}/examples/suit_update will build & conditionally create a key in ${RIOTBASE}/keys/default.pem if none is there.

Running make clean will leave the key in place.

Re-running make -j will reuse the existing key.

Running make -j clean all will try to re-create a key in the location although it exists. The process will fail because the key generator checks for an existing key. However, it should not even be executed.

With the changes of this PR

Making the dependency on CLEAN order-only will avoid attempting to re-create a key when there is already one. make -j clean all does not touch an existing key runs the clean build without error.

Issues/PRs references

None.

This fixes a trigger of re-creation of an already existing SUIT
key when combining a build target with the clean target, e.g.
`make clean all`.
@github-actions github-actions bot added the Area: build system Area: Build system label Jul 20, 2022
@benpicco benpicco requested review from bergzand and fjmolinas July 20, 2022 11:04
@benpicco benpicco added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jul 20, 2022
@benpicco benpicco merged commit 85cb1bd into RIOT-OS:master Jul 21, 2022
@benpicco benpicco deleted the fix/20220719__suit__makefile_target_dependencies branch July 21, 2022 10:40
@maribu maribu added this to the Release 2022.10 milestone Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: build system Area: Build system CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants